mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Moving to root below branch label
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
2
source/web/scripts/tiny_mce/plugins/iespell/editor_plugin.js
vendored
Normal file
2
source/web/scripts/tiny_mce/plugins/iespell/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('iespell','cs,el,en,fr_ca,it,ko,sv,zh_cn,fr,de,pl');function TinyMCE_iespell_getControlHTML(control_name){if(control_name=="iespell"&&tinyMCE.isMSIE)return '<img id="{$editor_id}_iespell" src="{$pluginurl}/images/iespell.gif" title="{$lang_iespell_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}\',\'mceIESpell\');">';return "";}function TinyMCE_iespell_execCommand(editor_id,element,command,user_interface,value){if(command=="mceIESpell"){try{var ieSpell=new ActiveXObject("ieSpell.ieSpellExtension");ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);}catch(e){if(e.number==-2146827859){if(confirm(tinyMCE.getLang("lang_iespell_download","",true)))window.open('http://www.iespell.com/download.php','ieSpellDownload','');}else alert("Error Loading ieSpell: Exception "+e.number);}return true;}return false;}
|
37
source/web/scripts/tiny_mce/plugins/iespell/editor_plugin_src.js
vendored
Normal file
37
source/web/scripts/tiny_mce/plugins/iespell/editor_plugin_src.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('iespell', 'cs,el,en,fr_ca,it,ko,sv,zh_cn,fr,de,pl');
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the iespell control.
|
||||
*/
|
||||
function TinyMCE_iespell_getControlHTML(control_name) {
|
||||
// Is it the iespell control and is the brower MSIE.
|
||||
if (control_name == "iespell" && tinyMCE.isMSIE)
|
||||
return '<img id="{$editor_id}_iespell" src="{$pluginurl}/images/iespell.gif" title="{$lang_iespell_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}\',\'mceIESpell\');">';
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the mceIESpell command.
|
||||
*/
|
||||
function TinyMCE_iespell_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle ieSpellCommand
|
||||
if (command == "mceIESpell") {
|
||||
try {
|
||||
var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension");
|
||||
ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);
|
||||
} catch (e) {
|
||||
if (e.number == -2146827859) {
|
||||
if (confirm(tinyMCE.getLang("lang_iespell_download", "", true)))
|
||||
window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
|
||||
} else
|
||||
alert("Error Loading ieSpell: Exception " + e.number);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
BIN
source/web/scripts/tiny_mce/plugins/iespell/images/iespell.gif
vendored
Normal file
BIN
source/web/scripts/tiny_mce/plugins/iespell/images/iespell.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 151 B |
4
source/web/scripts/tiny_mce/plugins/iespell/langs/en.js
vendored
Normal file
4
source/web/scripts/tiny_mce/plugins/iespell/langs/en.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Run spell checking';
|
||||
tinyMCELang['lang_iespell_download'] = "ieSpell not detected. Click OK to go to download page."
|
20
source/web/scripts/tiny_mce/plugins/iespell/readme.txt
vendored
Normal file
20
source/web/scripts/tiny_mce/plugins/iespell/readme.txt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
ieSpell plugin for TinyMCE
|
||||
----------------------------
|
||||
|
||||
Installation instructions:
|
||||
* Copy the iespell directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).
|
||||
* Add plugin to TinyMCE plugin option list example: plugins : "iespell".
|
||||
* Add the iespell button name to button list, example: theme_advanced_buttons3_add : "iespell".
|
||||
|
||||
Initialization example:
|
||||
tinyMCE.init({
|
||||
theme : "advanced",
|
||||
mode : "textareas",
|
||||
plugins : "iespell",
|
||||
theme_advanced_buttons3_add : "iespell"
|
||||
});
|
||||
|
||||
Requirements:
|
||||
The end user will need MSIE on Windows with the ieSpell installed. This can be downloaded
|
||||
from http://www.iespell.com/download.php. Notice on other browsers than MSIE the spellchecking
|
||||
button will not be visible.
|
Reference in New Issue
Block a user