updating tinymce to 1.43 and fixed some bugs
This commit is contained in:
parent
98dc54e16d
commit
914f29b169
209 changed files with 2183 additions and 1506 deletions
|
|
@ -1,2 +1,2 @@
|
|||
/* Import theme specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('advhr','en,de,sv,zh_cn,cs');function TinyMCE_advhr_getControlHTML(control_name){switch(control_name){case "advhr":return '<img id="{$editor_id}_advhr" src="{$pluginurl}/images/advhr.gif" title="{$lang_insert_advhr_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}\',\'mceAdvancedHr\');" />';}return "";}function TinyMCE_advhr_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceAdvancedHr":var template=new Array();template['file']='../../plugins/advhr/rule.htm';template['width']=270;template['height']=180;var size="",width="",noshade="";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="hr"){tinyMCE.hrElement=tinyMCE.selectedElement;if(tinyMCE.hrElement){size=tinyMCE.hrElement.getAttribute('size')?tinyMCE.hrElement.getAttribute('size'):"";width=tinyMCE.hrElement.getAttribute('width')?tinyMCE.hrElement.getAttribute('width'):"";noshade=tinyMCE.hrElement.getAttribute('noshade')?tinyMCE.hrElement.getAttribute('noshade'):"";}tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'update'});}else{if(tinyMCE.isMSIE){tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,'<hr />');}else{tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'insert'});}}return true;}return false;}function TinyMCE_advhr_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonNormal');do{if(node.nodeName.toLowerCase()=="hr")tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonSelected');}while((node=node.parentNode));return true;}
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('advhr','en,de,sv,zh_cn,cs,fa,fr_ca,fr');function TinyMCE_advhr_getControlHTML(control_name){switch(control_name){case "advhr":return '<img id="{$editor_id}_advhr" src="{$pluginurl}/images/advhr.gif" title="{$lang_insert_advhr_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}\',\'mceAdvancedHr\');" />';}return "";}function TinyMCE_advhr_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceAdvancedHr":var template=new Array();template['file']='../../plugins/advhr/rule.htm';template['width']=270;template['height']=180;var size="",width="",noshade="";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="hr"){tinyMCE.hrElement=tinyMCE.selectedElement;if(tinyMCE.hrElement){size=tinyMCE.hrElement.getAttribute('size')?tinyMCE.hrElement.getAttribute('size'):"";width=tinyMCE.hrElement.getAttribute('width')?tinyMCE.hrElement.getAttribute('width'):"";noshade=tinyMCE.hrElement.getAttribute('noshade')?tinyMCE.hrElement.getAttribute('noshade'):"";}tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'update'});}else{if(tinyMCE.isMSIE){tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,'<hr />');}else{tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'insert'});}}return true;}return false;}function TinyMCE_advhr_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonNormal');if(node==null)return;do{if(node.nodeName.toLowerCase()=="hr")tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonSelected');}while((node=node.parentNode));return true;}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/* Import theme specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('advhr', 'en,de,sv,zh_cn,cs');
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('advhr', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr');
|
||||
|
||||
function TinyMCE_advhr_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
|
|
@ -46,6 +46,9 @@ function TinyMCE_advhr_execCommand(editor_id, element, command, user_interface,
|
|||
function TinyMCE_advhr_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
||||
tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonNormal');
|
||||
|
||||
if (node == null)
|
||||
return;
|
||||
|
||||
do {
|
||||
if (node.nodeName.toLowerCase() == "hr")
|
||||
tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonSelected');
|
||||
|
|
|
|||
11
www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/fa.js
vendored
Normal file
11
www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/fa.js
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// IR lang variables
|
||||
// Persian (Farsi) language pack (for IRAN)
|
||||
// By: Morteza Zafari
|
||||
// Lost@LostLord.com
|
||||
// http://www.LostLord.com
|
||||
|
||||
tinyMCELang['lang_dir'] = 'rtl';
|
||||
tinyMCELang['lang_insert_advhr_desc'] = 'درج و ویرایش خط افقی'
|
||||
tinyMCELang['lang_insert_advhr_width'] = 'عرض';
|
||||
tinyMCELang['lang_insert_advhr_size'] = 'ارتفاع';
|
||||
tinyMCELang['lang_insert_advhr_noshade'] = 'بدون سایه';
|
||||
6
www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/fr.js
vendored
Normal file
6
www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/fr.js
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// French lang variables by Laurent Dran
|
||||
|
||||
tinyMCELang['lang_insert_advhr_desc'] = 'Insérer / éditer une Rčgle Horizontale'
|
||||
tinyMCELang['lang_insert_advhr_width'] = 'Largeur';
|
||||
tinyMCELang['lang_insert_advhr_size'] = 'Hauteur';
|
||||
tinyMCELang['lang_insert_advhr_noshade'] = 'Sans ombre';
|
||||
6
www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/fr_ca.js
vendored
Normal file
6
www/extras/tinymce/jscripts/tiny_mce/plugins/advhr/langs/fr_ca.js
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// CA_FR lang variables
|
||||
|
||||
tinyMCELang['lang_insert_advhr_desc'] = 'Insérer / Modifier Séparateur Horizontal';
|
||||
tinyMCELang['lang_insert_advhr_width'] = 'Largeur';
|
||||
tinyMCELang['lang_insert_advhr_size'] = 'Hauteur';
|
||||
tinyMCELang['lang_insert_advhr_noshade'] = 'Sans ombrage';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// SE lang variables
|
||||
|
||||
tinyMCELang['lang_insert_advhr_desc'] = 'Skapa / uppdatera Horizontell linie'
|
||||
tinyMCELang['lang_insert_advhr_desc'] = 'Skapa/Redigera horisontell linje'
|
||||
tinyMCELang['lang_insert_advhr_width'] = 'Bredd';
|
||||
tinyMCELang['lang_insert_advhr_size'] = 'Höjd';
|
||||
tinyMCELang['lang_insert_advhr_noshade'] = 'Ingen skugga';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<html>
|
||||
<head>
|
||||
<title>{$lang_insert_link_title}</title>
|
||||
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue