From 49b855c55f2bc599d13d6a7ab8375a04fc98f021 Mon Sep 17 00:00:00 2001 From: onli Date: Sun, 24 Feb 2013 19:28:27 +0100 Subject: [PATCH] removed no longer used simpler functions like serendipity_insImage because the advanced version will now always get called --- serendipity_editor.js | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/serendipity_editor.js b/serendipity_editor.js index 55659bad..44bb4320 100644 --- a/serendipity_editor.js +++ b/serendipity_editor.js @@ -130,48 +130,6 @@ function wrapInsImage(txtarea) { } /* end Better-Editor functions */ -// These are just "basic" flavors of the "better editor" functions -// above; not sure when/if these are actually used? -// insert -function serendipity_insImage (area) { - var loc = prompt('Enter the Image Location: '); - - if (!loc) { - area.focus(); - return; - } - - area.value = area.value + ''; - area.focus(); -} - -// see above; generic insert -function serendipity_insBasic (area, tag) { - area.value = area.value + "<" + tag + ">"; - area.focus(); -} - -// see above; insert -function serendipity_insLink (area) { - var loc = prompt('Enter URL Location: '); - var text = prompt('Enter Description: '); - var my_title = prompt("Enter title/tooltip:", ""); - - if (!loc) { - area.focus(); - return; - } - - html_title = ""; - - if (my_title != "" && my_title != null) { - html_title = ' title="' + my_title + '"'; - } - - area.value = area.value + '' + (text ? text : loc) + ''; - area.focus(); -} - // "Transfer" value from media db popup to form element? function serendipity_imageSelector_addToElement (str, el) { document.getElementById(el).value = str;