Image tag promt removed from textEditor

main
Inga 🏳‍🌈 14 years ago
parent 2f79792cdc
commit 934a6a821d
  1. 2
      Builder/IISMainHandler/build.txt
  2. 8
      static/js/textEditor.js
  3. 2
      templates/Modern/elems/TextEditor.xslt

@ -1,4 +1,4 @@
function x() {
function x() {
return;
}
var cancelEnter = false;
@ -156,12 +156,12 @@ function DoPrompt(action) {
insertAtCaret(document.replier.Body, ' ' + "[i]" + thisItal + "[/i]" + ' ');
document.replier.Body.focus();
return;
} else if(action == "image") {
var thisImage = prompt("Введите полный URL картинки, которую вы хотите вставить в сообщение.", "http://");
} else if(action == "furl") {
var thisImage = prompt("Введите полный URL адреса на старом форуме.", "http://");
if(thisImage == null) {
return;
}
insertAtCaret(document.replier.Body, ' ' + "[image]" + thisImage + "[/image]" + ' ' );
insertAtCaret(document.replier.Body, ' ' + "[furl]" + thisImage + "[/furl]" + ' ' );
document.replier.Body.focus();
return;
} else if(action == "quote") {

@ -118,7 +118,7 @@ function insertInBody(str) {
<a pseudolink="pseudolink" onclick="DoPrompt('code');">Êîä</a>
</td>
<td class="darktable">
<a pseudolink="pseudolink" onclick="DoPrompt('image');">Êàðòèíêà</a>
<a pseudolink="pseudolink" onclick="DoPrompt('furl');">Ñòàðûé URL</a>
</td>
</tr>
<tr>

Loading…
Cancel
Save