remove tiny_mce
[citadel.git] / webcit / tiny_mce / themes / simple / editor_template_src.js
diff --git a/webcit/tiny_mce/themes/simple/editor_template_src.js b/webcit/tiny_mce/themes/simple/editor_template_src.js
deleted file mode 100644 (file)
index 0efa179..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-function TinyMCE_simple_getEditorTemplate() {\r
-       var template = new Array();\r
-\r
-       template['html'] = '\\r
-<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">\\r
-<tr><td align="center">\\r
-<span id="{$editor_id}">IFRAME</span>\\r
-</td></tr>\\r
-<tr><td class="mceToolbar" align="center" height="1">\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Bold\');" onmousedown="return false;"><img id="{$editor_id}_bold" src="{$themeurl}/images/{$lang_bold_img}" title="{$lang_bold_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');"></a>\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Italic\');" onmousedown="return false;"><img id="{$editor_id}_italic" src="{$themeurl}/images/{$lang_italic_img}" title="{$lang_italic_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');">\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Underline\');" onmousedown="return false;"><img id="{$editor_id}_underline" src="{$themeurl}/images/{$lang_underline_img}" title="{$lang_underline_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');">\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Strikethrough\');" onmousedown="return false;"><img id="{$editor_id}_strikethrough" src="{$themeurl}/images/strikethrough.gif" title="{$lang_striketrough_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');">\\r
-<img src="{$themeurl}/images/spacer.gif" width="1" height="15" class="mceSeparatorLine">\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Undo\');" onmousedown="return false;"><img src="{$themeurl}/images/undo.gif" title="{$lang_undo_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');">\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Redo\');" onmousedown="return false;"><img src="{$themeurl}/images/redo.gif" title="{$lang_redo_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');">\\r
-<img src="{$themeurl}/images/spacer.gif" width="1" height="15" class="mceSeparatorLine">\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceCleanup\');" onmousedown="return false;"><img src="{$themeurl}/images/cleanup.gif" title="{$lang_cleanup_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');">\\r
-<img src="{$themeurl}/images/spacer.gif" width="1" height="15" class="mceSeparatorLine">\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'InsertUnorderedList\');" onmousedown="return false;"><img id="{$editor_id}_bullist" src="{$themeurl}/images/bullist.gif" title="{$lang_bullist_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');">\\r
-<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'InsertOrderedList\');" onmousedown="return false;"><img id="{$editor_id}_numlist" src="{$themeurl}/images/numlist.gif" title="{$lang_numlist_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');">\\r
-</td></tr>\\r
-</table>';\r
-\r
-       template['delta_width'] = 0;\r
-       template['delta_height'] = -20;\r
-\r
-       return template;\r
-}\r
-\r
-function TinyMCE_simple_handleNodeChange(editor_id, node) {\r
-       // Reset old states\r
-       tinyMCE.switchClassSticky(editor_id + '_bold', 'mceButtonNormal');\r
-       tinyMCE.switchClassSticky(editor_id + '_italic', 'mceButtonNormal');\r
-       tinyMCE.switchClassSticky(editor_id + '_underline', 'mceButtonNormal');\r
-       tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonNormal');\r
-       tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonNormal');\r
-       tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonNormal');\r
-\r
-       // Handle elements\r
-       do {\r
-               switch (node.nodeName.toLowerCase()) {\r
-                       case "b":\r
-                       case "strong":\r
-                               tinyMCE.switchClassSticky(editor_id + '_bold', 'mceButtonSelected');\r
-                       break;\r
-\r
-                       case "i":\r
-                       case "em":\r
-                               tinyMCE.switchClassSticky(editor_id + '_italic', 'mceButtonSelected');\r
-                       break;\r
-\r
-                       case "u":\r
-                               tinyMCE.switchClassSticky(editor_id + '_underline', 'mceButtonSelected');\r
-                       break;\r
-\r
-                       case "strike":\r
-                               tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonSelected');\r
-                       break;\r
-                       \r
-                       case "ul":\r
-                               tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonSelected');\r
-                       break;\r
-\r
-                       case "ol":\r
-                               tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonSelected');\r
-                       break;\r
-               }\r
-       } while ((node = node.parentNode));\r
-}\r