upgrade to tinymce 2.1.1.1
This commit is contained in:
parent
f36ba1b268
commit
e75b689857
847 changed files with 34500 additions and 7692 deletions
1
www/extras/tinymce2/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js
vendored
Executable file
1
www/extras/tinymce2/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
tinyMCE.importPluginLanguagePack('nonbreaking');var TinyMCE_NonBreakingPlugin={getInfo:function(){return{longname:'Nonbreaking space',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){switch(cn){case"nonbreaking":return tinyMCE.getButtonHTML(cn,'lang_nonbreaking_desc','{$pluginurl}/images/nonbreaking.gif','mceNonBreaking',false)}return""},execCommand:function(editor_id,element,command,user_interface,value){var inst=tinyMCE.getInstanceById(editor_id),h;switch(command){case"mceNonBreaking":h=(inst.visualChars&&inst.visualChars.state)?'<span class="mceItemHiddenVisualChar">·</span>':' ';tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,h);return true}return false},handleEvent:function(e){var inst,h;if(!tinyMCE.isOpera&&e.type=='keydown'&&e.keyCode==9&&tinyMCE.getParam('nonbreaking_force_tab',false)){inst=tinyMCE.selectedInstance;h=(inst.visualChars&&inst.visualChars.state)?'<span class="mceItemHiddenVisualChar">···</span>':' ';tinyMCE.execInstanceCommand(inst.editorId,'mceInsertContent',false,h);tinyMCE.cancelEvent(e);return false}return true}};tinyMCE.addPlugin("nonbreaking",TinyMCE_NonBreakingPlugin);
|
||||
62
www/extras/tinymce2/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
vendored
Executable file
62
www/extras/tinymce2/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
vendored
Executable file
|
|
@ -0,0 +1,62 @@
|
|||
/**
|
||||
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('nonbreaking');
|
||||
|
||||
var TinyMCE_NonBreakingPlugin = {
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Nonbreaking space',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking',
|
||||
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
||||
};
|
||||
},
|
||||
|
||||
getControlHTML : function(cn) {
|
||||
switch (cn) {
|
||||
case "nonbreaking":
|
||||
return tinyMCE.getButtonHTML(cn, 'lang_nonbreaking_desc', '{$pluginurl}/images/nonbreaking.gif', 'mceNonBreaking', false);
|
||||
}
|
||||
|
||||
return "";
|
||||
},
|
||||
|
||||
|
||||
execCommand : function(editor_id, element, command, user_interface, value) {
|
||||
var inst = tinyMCE.getInstanceById(editor_id), h;
|
||||
|
||||
switch (command) {
|
||||
case "mceNonBreaking":
|
||||
h = (inst.visualChars && inst.visualChars.state) ? '<span class="mceItemHiddenVisualChar">·</span>' : ' ';
|
||||
tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false, h);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
handleEvent : function(e) {
|
||||
var inst, h;
|
||||
|
||||
if (!tinyMCE.isOpera && e.type == 'keydown' && e.keyCode == 9 && tinyMCE.getParam('nonbreaking_force_tab', false)) {
|
||||
inst = tinyMCE.selectedInstance;
|
||||
|
||||
h = (inst.visualChars && inst.visualChars.state) ? '<span class="mceItemHiddenVisualChar">···</span>' : ' ';
|
||||
tinyMCE.execInstanceCommand(inst.editorId, 'mceInsertContent', false, h);
|
||||
|
||||
tinyMCE.cancelEvent(e);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
tinyMCE.addPlugin("nonbreaking", TinyMCE_NonBreakingPlugin);
|
||||
BIN
www/extras/tinymce2/jscripts/tiny_mce/plugins/nonbreaking/images/nonbreaking.gif
vendored
Executable file
BIN
www/extras/tinymce2/jscripts/tiny_mce/plugins/nonbreaking/images/nonbreaking.gif
vendored
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 619 B |
5
www/extras/tinymce2/jscripts/tiny_mce/plugins/nonbreaking/langs/en.js
vendored
Executable file
5
www/extras/tinymce2/jscripts/tiny_mce/plugins/nonbreaking/langs/en.js
vendored
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('nonbreaking',{
|
||||
desc : 'Insert non-breaking space character'
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue