tinymce editor
This commit is contained in:
parent
6ddb7c49e6
commit
9cffe191ac
655 changed files with 16255 additions and 22045 deletions
38
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js
vendored
Executable file
38
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js
vendored
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
/* Import theme specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('iespell', 'uk,se');
|
||||
|
||||
/**
|
||||
* 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("ieSpell not detected. Click OK to go to download page."))
|
||||
window.open('http://www.iespell.com/download.php','Download','');
|
||||
else
|
||||
alert("Error Loading ieSpell: Exception " + exception.number);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/images/Thumbs.db
vendored
Executable file
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/images/Thumbs.db
vendored
Executable file
Binary file not shown.
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/images/iespell.gif
vendored
Executable file
BIN
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/images/iespell.gif
vendored
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 113 B |
3
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/se.js
vendored
Executable file
3
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/se.js
vendored
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
// SE lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Kör rättstavningskontroll';
|
||||
3
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/uk.js
vendored
Executable file
3
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/langs/uk.js
vendored
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_iespell_desc'] = 'Run spell checking';
|
||||
20
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/readme.txt
vendored
Executable file
20
www/extras/tinymce/jscripts/tiny_mce/plugins/iespell/readme.txt
vendored
Executable 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue