tinymce editor

This commit is contained in:
JT Smith 2004-10-30 16:36:18 +00:00
parent 6ddb7c49e6
commit 9cffe191ac
655 changed files with 16255 additions and 22045 deletions

View 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;
}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B

View file

@ -0,0 +1,3 @@
// SE lang variables
tinyMCELang['lang_iespell_desc'] = 'Kör rättstavningskontroll';

View file

@ -0,0 +1,3 @@
// UK lang variables
tinyMCELang['lang_iespell_desc'] = 'Run spell checking';

View 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.