more tinymce stuff

This commit is contained in:
JT Smith 2005-12-05 15:44:37 +00:00
parent 5a60010a6f
commit b19f4cf952
468 changed files with 11635 additions and 0 deletions

View file

@ -0,0 +1 @@
tinyMCE.importPluginLanguagePack('preview','cs,de,el,en,fr_ca,it,ko,pt,sv,zh_cn,fa,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk');function TinyMCE_preview_getInfo(){return{longname:'Preview',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_preview.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_preview_getControlHTML(control_name){switch(control_name){case "preview":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mcePreview\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><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\');" /></a>';}return "";}function TinyMCE_preview_execCommand(editor_id,element,command,user_interface,value){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");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",inline:"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+=tinyMCE.getParam('doctype');html+='<html xmlns="http://www.w3.org/1999/xhtml">';html+='<head>';html+='<title>'+tinyMCE.getLang('lang_preview_desc')+'</title>';html+='<base href="'+tinyMCE.getParam("document_base_url")+'">';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;}return false;}

View file

@ -0,0 +1,72 @@
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('preview', 'cs,de,el,en,fr_ca,it,ko,pt,sv,zh_cn,fa,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,es,cy,is,zh_tw,zh_tw_utf8,sk');
function TinyMCE_preview_getInfo() {
return {
longname : 'Preview',
author : 'Moxiecode Systems',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_preview.html',
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
};
};
/**
* Returns the HTML contents of the preview control.
*/
function TinyMCE_preview_getControlHTML(control_name) {
switch (control_name) {
case "preview":
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mcePreview\');return false;';
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><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\');" /></a>';
}
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", inline : "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 += tinyMCE.getParam('doctype');
html += '<html xmlns="http://www.w3.org/1999/xhtml">';
html += '<head>';
html += '<title>' + tinyMCE.getLang('lang_preview_desc') + '</title>';
html += '<base href="' + tinyMCE.getParam("document_base_url") + '">';
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;
}
return false;
}

View file

@ -0,0 +1,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" src="../../tiny_mce_popup.js"></script>
<title>Example of a custom preview page</title>
<link href="{$content_css}" rel="stylesheet" type="text/css" />
</head>
<body>
Editor contents: <br />
{$content}
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

View file

@ -0,0 +1,11 @@
/**
* Czech lang variables
* encoding: utf-8
*
* $Id: cs.js,v 1.4 2005/10/18 13:59:43 spocke Exp $
*/
tinyMCE.addToLang('',{
preview_desc : 'Náhled'
});

View file

@ -0,0 +1,5 @@
// UK lang variables
tinyMCE.addToLang('',{
preview_desc : 'Rhagolwg'
});

View file

@ -0,0 +1,5 @@
// DK lang variables contributed by Jan Moelgaard
tinyMCE.addToLang('',{
preview_desc : 'Se siden'
});

View file

@ -0,0 +1,5 @@
// DE lang variables
tinyMCE.addToLang('',{
preview_desc : 'Vorschau'
});

View file

@ -0,0 +1,5 @@
// Greek lang variables by Jacaranda Bill
tinyMCE.addToLang('',{
preview_desc : 'Ðñï&aring;ðéóêüðçóç éóôïó&aring;ëß&auml;áò'
});

View file

@ -0,0 +1,5 @@
// UK lang variables
tinyMCE.addToLang('',{
preview_desc : 'Preview'
});

View file

@ -0,0 +1,7 @@
// ES lang variables by Alvaro Velasco and Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>
// Last Updated : October 2005
// TinyMCE Version : 2.0RC3
tinyMCE.addToLang('',{
preview_desc : 'Vista previa'
});

View file

@ -0,0 +1,10 @@
// IR lang variables
// Persian (Farsi) language pack (for IRAN)
// By: Morteza Zafari
// Lost@LostLord.com
// http://www.LostLord.com
tinyMCE.addToLang('',{
dir : 'rtl',
preview_desc : '??? ?????'
});

View file

@ -0,0 +1,6 @@
// French lang variables by Laurent Dran
// Modifié par Normand Lamoureux le 2005-11-12
tinyMCE.addToLang('',{
preview_desc : 'Prévisualisation'
});

View file

@ -0,0 +1,5 @@
// Canadian French lang variables by Virtuelcom last modification: 2005-06-15
tinyMCE.addToLang('',{
preview_desc : 'Prévisualisation'
});

View file

@ -0,0 +1,5 @@
// HE lang variables by Liron Newman, http://eesh.net
tinyMCE.addToLang('',{
preview_desc : 'úöåâä î÷ãéîä'
});

View file

@ -0,0 +1,5 @@
// HU lang variables
tinyMCE.addToLang('',{
preview_desc : 'Elõnézet'
});

View file

@ -0,0 +1,5 @@
// Iceland lang variables by Johannes Birgir Jensson
tinyMCE.addToLang('',{
preview_desc : 'Forsko&eth;a'
});

View file

@ -0,0 +1,5 @@
// IT lang variables
tinyMCE.addToLang('',{
preview_desc : 'Anteprima'
});

View file

@ -0,0 +1,5 @@
// KO lang variables
tinyMCE.addToLang('',{
preview_desc : '미리보기'
});

View file

@ -0,0 +1,5 @@
// nb = Norwegian (bokm&aring;l) lang variables by Knut B. Jacobsen
tinyMCE.addToLang('',{
preview_desc : 'Forh&aring;ndsvisning'
});

View file

@ -0,0 +1,5 @@
// UK lang variables
tinyMCE.addToLang('',{
preview_desc : 'Voorbeeld'
});

View file

@ -0,0 +1,5 @@
// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen
tinyMCE.addToLang('',{
preview_desc : 'Forh&aring;ndsvisning'
});

View file

@ -0,0 +1,7 @@
// PL lang variables
// fixed by Wooya
// http://www.musion.prv.pl
tinyMCE.addToLang('',{
preview_desc : 'Podgl±d'
});

View file

@ -0,0 +1,5 @@
// UK lang variables
tinyMCE.addToLang('',{
preview_desc : 'Pré-visualização'
});

View file

@ -0,0 +1,13 @@
/**
* pt_br lang variables
* Brazilian Portuguese
*
* Authors : ????
* Revision and modifications:
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
* Last Updated : November 26, 2005
* TinyMCE Version : 2.0RC4
*/
tinyMCE.addToLang('',{
preview_desc : 'Visualizar'
});

View file

@ -0,0 +1,5 @@
// RU lang variables cp1251
tinyMCE.addToLang('',{
preview_desc : 'Ïðåäâàðèòåëüíûé ïðîñìîòð'
});

View file

@ -0,0 +1,5 @@
// RU lang variables KOI8-R
tinyMCE.addToLang('',{
preview_desc : 'ðÒÅÄ×ÁÒÉÔÅÌØÎÙÊ ÐÒÏÓÍÏÔÒ'
});

View file

@ -0,0 +1,5 @@
// RU lang variables UTF-8
tinyMCE.addToLang('',{
preview_desc : 'Предварительный просмотр'
});

View file

@ -0,0 +1,13 @@
/**
* Slovak lang variables
* encoding: utf-8
*
* @author Vladimir VASIL vvasil@post.sk
*
* $Id: sk.js,v 1.1 2005/11/22 20:56:44 spocke Exp $
*/
tinyMCE.addToLang('',{
preview_desc : 'Náhľad'
});

View file

@ -0,0 +1,5 @@
// SE lang variables
tinyMCE.addToLang('',{
preview_desc : 'F&ouml;rhandsgranska'
});

View file

@ -0,0 +1,5 @@
// Simplified Chinese lang variables contributed by cube316 (cube316@etang.com)
tinyMCE.addToLang('',{
preview_desc : 'Ô¤ÀÀ'
});

View file

@ -0,0 +1,6 @@
// Traditional Chinese BIG-5; Twapweb Site translated; twapweb_AT_gmail_DOT_com
// 繁體中文 BIG-5 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
tinyMCE.addToLang('',{
preview_desc : '預覽'
});

View file

@ -0,0 +1,6 @@
// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com
// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
tinyMCE.addToLang('',{
preview_desc : '預覽'
});

View file

@ -0,0 +1 @@
Check the TinyMCE documentation for details on this plugin.