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

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

Loading…
Cancel
Save