upgrading tinymce to 1.41
This commit is contained in:
parent
bd48711603
commit
3d93669497
57 changed files with 2539 additions and 0 deletions
61
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js
vendored
Normal file
61
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin_src.js
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
/* Import theme specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('preview', 'cs,de,el,en,fr_ca,it,ko,pt,sv,zh_cn');
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the preview control.
|
||||
*/
|
||||
function TinyMCE_preview_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "preview":
|
||||
return '<img id="{$editor_id}_preview" src="{$pluginurl}/images/preview.gif" title="{$lang_preview_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}\',\'mcePreview\');" />';
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the mcePreview command.
|
||||
*/
|
||||
function TinyMCE_preview_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle commands
|
||||
switch (command) {
|
||||
case "mcePreview":
|
||||
var previewPage = tinyMCE.getParam("plugin_preview_pageurl", null);
|
||||
var previewWidth = tinyMCE.getParam("plugin_preview_width", "550");
|
||||
var previewHeight = tinyMCE.getParam("plugin_preview_height", "600");
|
||||
|
||||
// Use a custom preview page
|
||||
if (previewPage) {
|
||||
var template = new Array();
|
||||
|
||||
template['file'] = previewPage;
|
||||
template['width'] = previewWidth;
|
||||
template['height'] = previewHeight;
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id, resizable : "yes", scrollbars : "yes", content : tinyMCE.getContent(), content_css : tinyMCE.getParam("content_css")});
|
||||
} else {
|
||||
var win = window.open("", "mcePreview", "menubar=no,toolbar=no,scrollbars=yes,resizable=yes,left=20,top=20,width=" + previewWidth + ",height=" + previewHeight);
|
||||
var html = "";
|
||||
|
||||
html += '<!doctype html public "-//w3c//dtd html 4.0 transitional//en">';
|
||||
html += '<html>';
|
||||
html += '<head>';
|
||||
html += '<title>' + tinyMCE.getLang('lang_preview_desc') + '</title>';
|
||||
html += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
|
||||
html += '<link href="' + tinyMCE.getParam("content_css") + '" rel="stylesheet" type="text/css">';
|
||||
html += '</head>';
|
||||
html += '<body>';
|
||||
html += tinyMCE.getContent();
|
||||
html += '</body>';
|
||||
html += '</html>';
|
||||
|
||||
win.document.write(html);
|
||||
win.document.close();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/cs.js
vendored
Normal file
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/cs.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Náhled';
|
||||
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/en.js
vendored
Normal file
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/en.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// UK lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Preview';
|
||||
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/fr_ca.js
vendored
Normal file
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/fr_ca.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// CAN_FR lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Prévisualisation';
|
||||
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/sv.js
vendored
Normal file
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/sv.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// SE lang variables
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Förhandsgranska';
|
||||
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/zh_cn.js
vendored
Normal file
3
www/extras/tinymce/jscripts/tiny_mce/plugins/preview/langs/zh_cn.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com)
|
||||
|
||||
tinyMCELang['lang_preview_desc'] = 'Ô¤ÀÀ';
|
||||
Loading…
Add table
Add a link
Reference in a new issue