updating tinymce to 1.41
This commit is contained in:
parent
dc1721d1ef
commit
bd48711603
125 changed files with 5524 additions and 3444 deletions
|
|
@ -1,7 +1,4 @@
|
|||
function TinyMCE_simple_getEditorTemplate() {
|
||||
var template = new Array();
|
||||
|
||||
template['html'] = '\
|
||||
function TinyMCE_simple_getEditorTemplate(){var template=new Array();template['html']='\
|
||||
<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">\
|
||||
<tr><td align="center">\
|
||||
<span id="{$editor_id}">IFRAME</span>\
|
||||
|
|
@ -20,51 +17,4 @@ function TinyMCE_simple_getEditorTemplate() {
|
|||
<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\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'InsertUnorderedList\')">\
|
||||
<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\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'InsertOrderedList\')">\
|
||||
</td></tr>\
|
||||
</table>';
|
||||
|
||||
template['delta_width'] = 0;
|
||||
template['delta_height'] = -20;
|
||||
|
||||
return template;
|
||||
}
|
||||
|
||||
function TinyMCE_simple_handleNodeChange(editor_id, node) {
|
||||
// Reset old states
|
||||
tinyMCE.switchClassSticky(editor_id + '_bold', 'mceButtonNormal');
|
||||
tinyMCE.switchClassSticky(editor_id + '_italic', 'mceButtonNormal');
|
||||
tinyMCE.switchClassSticky(editor_id + '_underline', 'mceButtonNormal');
|
||||
tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonNormal');
|
||||
tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonNormal');
|
||||
tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonNormal');
|
||||
|
||||
// Handle elements
|
||||
do {
|
||||
switch (node.nodeName.toLowerCase()) {
|
||||
case "b":
|
||||
case "strong":
|
||||
tinyMCE.switchClassSticky(editor_id + '_bold', 'mceButtonSelected');
|
||||
break;
|
||||
|
||||
case "i":
|
||||
case "em":
|
||||
tinyMCE.switchClassSticky(editor_id + '_italic', 'mceButtonSelected');
|
||||
break;
|
||||
|
||||
case "u":
|
||||
tinyMCE.switchClassSticky(editor_id + '_underline', 'mceButtonSelected');
|
||||
break;
|
||||
|
||||
case "strike":
|
||||
tinyMCE.switchClassSticky(editor_id + '_strikethrough', 'mceButtonSelected');
|
||||
break;
|
||||
|
||||
case "ul":
|
||||
tinyMCE.switchClassSticky(editor_id + '_bullist', 'mceButtonSelected');
|
||||
break;
|
||||
|
||||
case "ol":
|
||||
tinyMCE.switchClassSticky(editor_id + '_numlist', 'mceButtonSelected');
|
||||
break;
|
||||
}
|
||||
} while ((node = node.parentNode));
|
||||
}
|
||||
</table>';template['delta_width']=0;template['delta_height']=-20;return template;}function TinyMCE_simple_handleNodeChange(editor_id,node){tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonNormal');do{switch(node.nodeName.toLowerCase()){case "b":case "strong":tinyMCE.switchClassSticky(editor_id+'_bold','mceButtonSelected');break;case "i":case "em":tinyMCE.switchClassSticky(editor_id+'_italic','mceButtonSelected');break;case "u":tinyMCE.switchClassSticky(editor_id+'_underline','mceButtonSelected');break;case "strike":tinyMCE.switchClassSticky(editor_id+'_strikethrough','mceButtonSelected');break;case "ul":tinyMCE.switchClassSticky(editor_id+'_bullist','mceButtonSelected');break;case "ol":tinyMCE.switchClassSticky(editor_id+'_numlist','mceButtonSelected');break;}}while((node=node.parentNode));}
|
||||
Loading…
Add table
Add a link
Reference in a new issue