Initial import
This commit is contained in:
commit
057959cb8f
1198 files changed
+89467
No files matched your search
@@ -0,0 +1,118 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('template', 'en'); // <- Add a comma separated list of all supported languages
|
||||
|
||||
/****
|
||||
* Steps for creating a plugin from this template:
|
||||
*
|
||||
* 1. Change all "template" to the name of your plugin.
|
||||
* 2. Remove all the callbacks in this file that you don't need.
|
||||
* 3. Remove the popup.htm file if you don't need any popups.
|
||||
* 4. Add your custom logic to the callbacks you needed.
|
||||
* 5. Write documentation in a readme.txt file on how to use the plugin.
|
||||
* 6. Upload it under the "Plugins" section at sourceforge.
|
||||
*
|
||||
****/
|
||||
|
||||
/**
|
||||
* Gets executed when a editor instance is initialized
|
||||
*/
|
||||
function TinyMCE_template_initInstance(inst) {
|
||||
// You can take out plugin specific parameters
|
||||
alert("Initialization parameter:" + tinyMCE.getParam("template_someparam", false));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets executed when a editor needs to generate a button.
|
||||
*/
|
||||
function TinyMCE_template_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "template":
|
||||
return '<img id="{$editor_id}_template" src="{$pluginurl}/images/template.gif" title="{$lang_template_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceTemplate\', true);" />';
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets executed when a command is called.
|
||||
*/
|
||||
function TinyMCE_template_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle commands
|
||||
switch (command) {
|
||||
// Remember to have the "mce" prefix for commands so they don't intersect with built in ones in the browser.
|
||||
case "mceTemplate":
|
||||
// Show UI/Popup
|
||||
if (user_interface) {
|
||||
// Open a popup window and send in some custom data in a window argument
|
||||
var template = new Array();
|
||||
|
||||
template['file'] = '../../plugins/template/popup.htm'; // Relative to theme
|
||||
template['width'] = 300;
|
||||
template['height'] = 200;
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id, some_custom_arg : "somecustomdata"});
|
||||
|
||||
// Let TinyMCE know that something was modified
|
||||
tinyMCE.triggerNodeChange(false);
|
||||
} else {
|
||||
// Do a command this gets called from the template popup
|
||||
alert("execCommand: mceTemplate gets called from popup.");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets executed when the selection/cursor position was changed.
|
||||
*/
|
||||
function TinyMCE_template_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
||||
// Deselect template button
|
||||
tinyMCE.switchClassSticky(editor_id + '_template', 'mceButtonNormal');
|
||||
|
||||
// Select template button if parent node is a strong or b
|
||||
if (node.parentNode.nodeName == "STRONG" || node.parentNode.nodeName == "B")
|
||||
tinyMCE.switchClassSticky(editor_id + '_template', 'mceButtonSelected');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets executed when contents is inserted / retrived.
|
||||
*/
|
||||
function TinyMCE_template_cleanup(type, content) {
|
||||
switch (type) {
|
||||
case "get_from_editor":
|
||||
alert("[FROM] Value HTML string: " + content);
|
||||
|
||||
// Do custom cleanup code here
|
||||
|
||||
break;
|
||||
|
||||
case "insert_to_editor":
|
||||
alert("[TO] Value HTML string: " + content);
|
||||
|
||||
// Do custom cleanup code here
|
||||
|
||||
break;
|
||||
|
||||
case "get_from_editor_dom":
|
||||
alert("[FROM] Value DOM Element " + content.innerHTML);
|
||||
|
||||
// Do custom cleanup code here
|
||||
|
||||
break;
|
||||
|
||||
case "insert_to_editor_dom":
|
||||
alert("[TO] Value DOM Element: " + content.innerHTML);
|
||||
|
||||
// Do custom cleanup code here
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return content;
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('template', 'en,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,pl'); // <- Add a comma separated list of all supported languages
|
||||
|
||||
/****
|
||||
* Steps for creating a plugin from this template:
|
||||
*
|
||||
* 1. Change all "template" to the name of your plugin.
|
||||
* 2. Remove all the callbacks in this file that you don't need.
|
||||
* 3. Remove the popup.htm file if you don't need any popups.
|
||||
* 4. Add your custom logic to the callbacks you needed.
|
||||
* 5. Write documentation in a readme.txt file on how to use the plugin.
|
||||
* 6. Upload it under the "Plugins" section at sourceforge.
|
||||
*
|
||||
****/
|
||||
|
||||
/**
|
||||
* Information about the plugin.
|
||||
*/
|
||||
function TinyMCE_template_getInfo() {
|
||||
return {
|
||||
longname : 'Template plugin',
|
||||
author : 'Your name',
|
||||
authorurl : 'http://www.yoursite.com',
|
||||
infourl : 'http://www.yoursite.com/docs/template.html',
|
||||
version : "1.0"
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets executed when a editor instance is initialized
|
||||
*/
|
||||
function TinyMCE_template_initInstance(inst) {
|
||||
// You can take out plugin specific parameters
|
||||
alert("Initialization parameter:" + tinyMCE.getParam("template_someparam", false));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets executed when a editor needs to generate a button.
|
||||
*/
|
||||
function TinyMCE_template_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "template":
|
||||
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceTemplate\', true);return false;';
|
||||
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_template" src="{$pluginurl}/images/template.gif" title="{$lang_template_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets executed when a command is called.
|
||||
*/
|
||||
function TinyMCE_template_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle commands
|
||||
switch (command) {
|
||||
// Remember to have the "mce" prefix for commands so they don't intersect with built in ones in the browser.
|
||||
case "mceTemplate":
|
||||
// Show UI/Popup
|
||||
if (user_interface) {
|
||||
// Open a popup window and send in some custom data in a window argument
|
||||
var template = new Array();
|
||||
|
||||
template['file'] = '../../plugins/template/popup.htm'; // Relative to theme
|
||||
template['width'] = 300;
|
||||
template['height'] = 200;
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id, some_custom_arg : "somecustomdata"});
|
||||
|
||||
// Let TinyMCE know that something was modified
|
||||
tinyMCE.triggerNodeChange(false);
|
||||
} else {
|
||||
// Do a command this gets called from the template popup
|
||||
alert("execCommand: mceTemplate gets called from popup.");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets executed when the selection/cursor position was changed.
|
||||
*/
|
||||
function TinyMCE_template_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
||||
// Deselect template button
|
||||
tinyMCE.switchClassSticky(editor_id + '_template', 'mceButtonNormal');
|
||||
|
||||
// Select template button if parent node is a strong or b
|
||||
if (node.parentNode.nodeName == "STRONG" || node.parentNode.nodeName == "B")
|
||||
tinyMCE.switchClassSticky(editor_id + '_template', 'mceButtonSelected');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets executed when contents is inserted / retrived.
|
||||
*/
|
||||
function TinyMCE_template_cleanup(type, content) {
|
||||
switch (type) {
|
||||
case "get_from_editor":
|
||||
alert("[FROM] Value HTML string: " + content);
|
||||
|
||||
// Do custom cleanup code here
|
||||
|
||||
break;
|
||||
|
||||
case "insert_to_editor":
|
||||
alert("[TO] Value HTML string: " + content);
|
||||
|
||||
// Do custom cleanup code here
|
||||
|
||||
break;
|
||||
|
||||
case "get_from_editor_dom":
|
||||
alert("[FROM] Value DOM Element " + content.innerHTML);
|
||||
|
||||
// Do custom cleanup code here
|
||||
|
||||
break;
|
||||
|
||||
case "insert_to_editor_dom":
|
||||
alert("[TO] Value DOM Element: " + content.innerHTML);
|
||||
|
||||
// Do custom cleanup code here
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return content;
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 87 B |
@@ -0,0 +1,8 @@
|
||||
// DK lang variables contributed by Jan Moelgaard
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Dette er bare en pop-up-skabelon',
|
||||
template_desc : 'Dette er bare en testknap'
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
// DE lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
/* Sprachparameter müssen als lang_<Eigenes Plugin>_<Eigener Name> definiert werden */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Dies ist nur ein Beispiel-Popup',
|
||||
template_desc : 'Dies ist nur ein Beispiel-Button'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// UK lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'This is just a template popup',
|
||||
template_desc : 'This is just a template button'
|
||||
});
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* ES lang variables
|
||||
*
|
||||
* Authors : Alvaro Velasco,
|
||||
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
|
||||
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
|
||||
* Last Updated : October 17, 2005
|
||||
* TinyMCE Version : 2.0RC3
|
||||
*/
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Esto es solo la plantilla de un popup',
|
||||
template_desc : 'Esto es solo la plantilla de un botón'
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
// Canadian French lang variables by Virtuelcom last modification: 2005-06-15
|
||||
// Modifié par Normand Lamoureux le 2005-11-12
|
||||
|
||||
/* N'oubliez pas d'identifer les paramètres de langue ainsi: <votre plugin>_<un nom> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Texte qui apparaîtra sous forme de titre dans la fenêtre pop-up de votre plugin',
|
||||
template_desc : 'Texte qui apparaîtra sous forme d\'info-bulle au survol du bouton de votre plugin'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// Canadian French lang variables by Virtuelcom last modification: 2005-06-15
|
||||
|
||||
/* Remember to namespace the language parameters <your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Ceci est un exmple pour le gabarit de popup',
|
||||
template_desc : 'Ceci est un exmple pour le gabarit d\'un bouton'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// HE lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'æä ñúí çìåï ÷åôõ ùì äúáðéú',
|
||||
template_desc : 'æä ñúí ëôúåø ùì äúáðéú'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// HU lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Ez csak egy példa popup',
|
||||
template_desc : 'Ez csak egy példa gomb'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// Iceland lang variables by Johannes Birgir Jensson
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Þetta er sniðmátsgluggi',
|
||||
template_desc : 'Þetta er sniðmátstakki'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// nb = Norwegian (bokmål) lang variables by Knut B. Jacobsen
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Dette er bare en template popup',
|
||||
template_desc : 'Dette er bare en template knapp'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// NL lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Dit is slechts een voorbeeldpopup',
|
||||
template_desc : 'Dit is slechts een voorbeeldknop'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Dette er berre ein template popup',
|
||||
template_desc : 'Dette er berre ein template knapp'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// PL lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'To jest szablon okna popup',
|
||||
template_desc : 'To jest szablon przycisku'
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* pt_br lang variables
|
||||
* Brazilian Portuguese
|
||||
*
|
||||
* Authors :
|
||||
* Marcio Barbosa (mpg) <mpg@mpg.com.br>
|
||||
* Last Updated : November 26, 2005
|
||||
* TinyMCE Version : 2.0RC4
|
||||
*/
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Este é só um modêlo de popup',
|
||||
template_desc : 'Este é só um modêlo de botão'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// RU cp1251 lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Ýòî øàáëîí äëÿ popup',
|
||||
template_desc : 'Ýòî øàáëîí äëÿ êíîïêè'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// RU KOI8-R lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'üÔÏ ÛÁÂÌÏÎ ÄÌÑ popup',
|
||||
template_desc : 'üÔÏ ÛÁÂÌÏÎ ÄÌÑ ËÎÏÐËÉ'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// RU UTF-8 lang variables
|
||||
|
||||
/* Remember to namespace the language parameters lang_<your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : 'Это шаблон для popup',
|
||||
template_desc : 'Это шаблон для кнопки'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// Simplified Chinese lang variables contributed by tom_cat (thomaswangyang@gmail.com)
|
||||
|
||||
/* Remember to namespace the language parameters <your plugin>_<some name> */
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : '这是一个模板弹出窗口',
|
||||
template_desc : '这是一个模板按钮'
|
||||
});
|
||||
Whitespace-only changes.
@@ -0,0 +1,7 @@
|
||||
// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com
|
||||
// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
template_title : '樣式跳現視窗',
|
||||
template_desc : '樣式按鈕'
|
||||
});
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{$lang_template_title}</title>
|
||||
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function init() {
|
||||
var inst = tinyMCE.selectedInstance;
|
||||
var elm = inst.getFocusElement();
|
||||
|
||||
alert("Got a window argument from plugin: " + tinyMCE.getWindowArg('some_custom_arg'));
|
||||
|
||||
// Set the form item value to the selected node element name
|
||||
document.forms[0].nodename.value = elm.nodeName;
|
||||
}
|
||||
|
||||
function insertSomething() {
|
||||
// Execute the mceTemplate command without UI this time
|
||||
tinyMCEPopup.execCommand('mceTemplate');
|
||||
|
||||
// Close the dialog
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="_self" />
|
||||
</head>
|
||||
<body onload="tinyMCEPopup.executeOnLoad('init();');">
|
||||
<form onsubmit="insert();return false;">
|
||||
<h3>{$lang_template_title}</h3>
|
||||
|
||||
<!-- Gets filled with the selected elements name -->
|
||||
<div style="margin-top: 10px; margin-bottom: 10px">
|
||||
The selected element name: <input type="text" name="nodename" />
|
||||
</div>
|
||||
|
||||
<div class="mceActionPanel">
|
||||
<div style="float: left">
|
||||
<input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertSomething();" />
|
||||
</div>
|
||||
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
This is a template/tutorial plugin that where created to help you in the development of own plugins for TinyMCE.
|
||||
@@ -0,0 +1 @@
|
||||
tinyMCE.importPluginLanguagePack('advhr','en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,zh_tw,zh_tw_utf8,sk');function TinyMCE_advhr_getInfo(){return{longname:'Advanced HR',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advhr.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_advhr_getControlHTML(control_name){switch(control_name){case "advhr":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvancedHr\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><img id="{$editor_id}_advhr" src="{$pluginurl}/images/advhr.gif" title="{$lang_insert_advhr_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_advhr_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceAdvancedHr":var template=new Array();template['file']='../../plugins/advhr/rule.htm';template['width']=270;template['height']=180;template['width']+=tinyMCE.getLang('lang_advhr_delta_width',0);template['height']+=tinyMCE.getLang('lang_advhr_delta_height',0);var size="",width="",noshade="";if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="hr"){tinyMCE.hrElement=tinyMCE.selectedElement;if(tinyMCE.hrElement){size=tinyMCE.hrElement.getAttribute('size')?tinyMCE.hrElement.getAttribute('size'):"";width=tinyMCE.hrElement.getAttribute('width')?tinyMCE.hrElement.getAttribute('width'):"";noshade=tinyMCE.hrElement.getAttribute('noshade')?tinyMCE.hrElement.getAttribute('noshade'):"";}tinyMCE.openWindow(template,{editor_id:editor_id,size:size,width:width,noshade:noshade,mceDo:'update'});}else{if(tinyMCE.isMSIE){tinyMCE.execInstanceCommand(editor_id,'mceInsertContent',false,'<hr />');}else{tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes",size:size,width:width,noshade:noshade,mceDo:'insert'});}}return true;}return false;}function TinyMCE_advhr_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonNormal');if(node==null)return;do{if(node.nodeName.toLowerCase()=="hr")tinyMCE.switchClassSticky(editor_id+'_advhr','mceButtonSelected');}while((node=node.parentNode));return true;}
|
||||
@@ -0,0 +1,75 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('advhr', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,es,cy,is,zh_tw,zh_tw_utf8,sk');
|
||||
|
||||
function TinyMCE_advhr_getInfo() {
|
||||
return {
|
||||
longname : 'Advanced HR',
|
||||
author : 'Moxiecode Systems',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advhr.html',
|
||||
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
||||
};
|
||||
};
|
||||
|
||||
function TinyMCE_advhr_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "advhr":
|
||||
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvancedHr\');return false;';
|
||||
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_advhr" src="{$pluginurl}/images/advhr.gif" title="{$lang_insert_advhr_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 mceAdvanceHr command.
|
||||
*/
|
||||
function TinyMCE_advhr_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle commands
|
||||
switch (command) {
|
||||
case "mceAdvancedHr":
|
||||
var template = new Array();
|
||||
|
||||
template['file'] = '../../plugins/advhr/rule.htm'; // Relative to theme
|
||||
template['width'] = 270;
|
||||
template['height'] = 180;
|
||||
|
||||
template['width'] += tinyMCE.getLang('lang_advhr_delta_width', 0);
|
||||
template['height'] += tinyMCE.getLang('lang_advhr_delta_height', 0);
|
||||
|
||||
var size = "", width = "", noshade = "";
|
||||
if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "hr"){
|
||||
tinyMCE.hrElement = tinyMCE.selectedElement;
|
||||
if (tinyMCE.hrElement) {
|
||||
size = tinyMCE.hrElement.getAttribute('size') ? tinyMCE.hrElement.getAttribute('size') : "";
|
||||
width = tinyMCE.hrElement.getAttribute('width') ? tinyMCE.hrElement.getAttribute('width') : "";
|
||||
noshade = tinyMCE.hrElement.getAttribute('noshade') ? tinyMCE.hrElement.getAttribute('noshade') : "";
|
||||
}
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id, size : size, width : width, noshade : noshade, mceDo : 'update'});
|
||||
} else {
|
||||
if (tinyMCE.isMSIE) {
|
||||
tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false,'<hr />');
|
||||
} else {
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", size : size, width : width, noshade : noshade, mceDo : 'insert'});
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
|
||||
function TinyMCE_advhr_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
||||
tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonNormal');
|
||||
|
||||
if (node == null)
|
||||
return;
|
||||
|
||||
do {
|
||||
if (node.nodeName.toLowerCase() == "hr")
|
||||
tinyMCE.switchClassSticky(editor_id + '_advhr', 'mceButtonSelected');
|
||||
} while ((node = node.parentNode));
|
||||
|
||||
return true;
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 153 B |
@@ -0,0 +1,41 @@
|
||||
function init() {
|
||||
var formObj = document.forms[0];
|
||||
formObj.width.value = tinyMCE.getWindowArg('width');
|
||||
formObj.size.value = tinyMCE.getWindowArg('size');
|
||||
formObj.insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('mceDo'));
|
||||
if (tinyMCE.getWindowArg('noshade')) {
|
||||
formObj.noshade.checked = true;
|
||||
}
|
||||
if (tinyMCE.getWindowArg('width').lastIndexOf('%')!=-1) {
|
||||
formObj.width2.value = "%";
|
||||
formObj.width.value = formObj.width.value.substring(0,formObj.width.value.length-1);
|
||||
}
|
||||
}
|
||||
|
||||
function insertHR() {
|
||||
var formObj = document.forms[0];
|
||||
var width = formObj.width.value;
|
||||
var size = formObj.size.value;
|
||||
var html = '<hr';
|
||||
if (size!='' && size!=0) {
|
||||
html += ' size="' + size + '"';
|
||||
}
|
||||
if (width!='' && width!=0) {
|
||||
html += ' width="' + width;
|
||||
if (formObj.width2.value=='%') {
|
||||
html += '%';
|
||||
}
|
||||
html += '"';
|
||||
}
|
||||
if (formObj.noshade.checked==true) {
|
||||
html += ' noshade="noshade"';
|
||||
}
|
||||
html += ' />';
|
||||
|
||||
tinyMCEPopup.execCommand("mceInsertContent", true, html);
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
|
||||
function cancelAction() {
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Czech lang variables
|
||||
* encoding: utf-8
|
||||
*
|
||||
* $Id: cs.js,v 1.4 2005/10/18 13:59:21 spocke Exp $
|
||||
*/
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Vložit/editovat vodorovný oddělovač',
|
||||
insert_advhr_width : 'Šířka',
|
||||
insert_advhr_size : 'Výška',
|
||||
insert_advhr_noshade : 'Nestínovat'
|
||||
});
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// Welsh lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Mewnosod/golygu llinell llorweddol',
|
||||
insert_advhr_width : 'Lled',
|
||||
insert_advhr_size : 'Uchder',
|
||||
insert_advhr_noshade : 'Dim cysgod'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// DK lang variables contributed by Jan Moelgaard
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Indsæt / rediger horisontal bjælke',
|
||||
insert_advhr_width : 'Bredde',
|
||||
insert_advhr_size : 'Højde',
|
||||
insert_advhr_noshade : 'Ingen skygge'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// DE lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Horizontale Linie einfügen/bearbeiten',
|
||||
insert_advhr_width : 'Breite',
|
||||
insert_advhr_size : 'Höhe',
|
||||
insert_advhr_noshade : 'Keinen Schatten'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Insert / edit Horizontale Rule',
|
||||
insert_advhr_width : 'Width',
|
||||
insert_advhr_size : 'Height',
|
||||
insert_advhr_noshade : 'No shadow'
|
||||
});
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// 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('',{
|
||||
insert_advhr_desc : 'Insertar/Editar Barra Horizontal',
|
||||
insert_advhr_width : 'Ancho',
|
||||
insert_advhr_size : 'Alto',
|
||||
insert_advhr_noshade : 'Sin Sombras'
|
||||
});
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// IR lang variables
|
||||
// Persian (Farsi) language pack (for IRAN)
|
||||
// By: Morteza Zafari
|
||||
// Lost@LostLord.com
|
||||
// http://www.LostLord.com
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
dir : 'rtl',
|
||||
insert_advhr_desc : '??? ? ?????? ?? ????',
|
||||
insert_advhr_width : '???',
|
||||
insert_advhr_size : '??????',
|
||||
insert_advhr_noshade : '???? ????'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// FI lang variables by Tuomo Aura, Ateco.fi
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Lisää / Muokkaa vaakaviivaa',
|
||||
insert_advhr_width : 'Leveys',
|
||||
insert_advhr_size : 'Korkeus',
|
||||
insert_advhr_noshade : 'Ei varjostusta'
|
||||
});
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// French lang variables by Laurent Dran
|
||||
// Modifié par Normand Lamoureux le 2005-11-12
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Insérer une règle horizontale stylée',
|
||||
insert_advhr_width : 'Largeur',
|
||||
insert_advhr_size : 'Hauteur',
|
||||
insert_advhr_noshade : 'Sans ombre'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// CA_FR lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Insérer / Modifier Séparateur Horizontal',
|
||||
insert_advhr_width : 'Largeur',
|
||||
insert_advhr_size : 'Hauteur',
|
||||
insert_advhr_noshade : 'Sans ombrage'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// HE lang variables by Liron Newman, http://eesh.net
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'äëðñ/òøåê ÷å àåô÷é',
|
||||
insert_advhr_width : 'øåçá',
|
||||
insert_advhr_size : 'âåáä',
|
||||
insert_advhr_noshade : 'ììà öì'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// HU lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Vízszintes vonal beillesztése / szerkesztése',
|
||||
insert_advhr_width : 'Hosszúság',
|
||||
insert_advhr_size : 'Szélesség',
|
||||
insert_advhr_noshade : 'Nincs árnyék'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// Iceland lang variables by Johannes Birgir Jensson
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Bæta við/breyta stiku',
|
||||
insert_advhr_width : 'Breidd',
|
||||
insert_advhr_size : 'Hæð',
|
||||
insert_advhr_noshade : 'Enginn skuggi'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// nb = Norwegian (bokmål) lang variables by Knut B. Jacobsen
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Lage/Redigere horisontal linje',
|
||||
insert_advhr_width : 'Bredde',
|
||||
insert_advhr_size : 'Høyde',
|
||||
insert_advhr_noshade : 'Ingen skygge'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// NL lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Horizontale lijn invoegen/bewerken',
|
||||
insert_advhr_width : 'Breedte',
|
||||
insert_advhr_size : 'Hoogte',
|
||||
insert_advhr_noshade : 'Geen schaduw'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Lage/Redigere horisontal linje',
|
||||
insert_advhr_width : 'Bredde',
|
||||
insert_advhr_size : 'Høgde',
|
||||
insert_advhr_noshade : 'Ingen skugge'
|
||||
});
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// PL lang variables
|
||||
// fixed by Wooya
|
||||
// http://www.mfusion.prv.pl
|
||||
// fixed by lemiel 14.11.2005
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Wstaw/Edytuj poziom± liniê',
|
||||
insert_advhr_width : 'Szeroko¶æ',
|
||||
insert_advhr_size : 'Wysoko¶æ',
|
||||
insert_advhr_noshade : 'Brak cienia'
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* 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('',{
|
||||
insert_advhr_desc : 'Inserir / editar Linha Horizontal',
|
||||
insert_advhr_width : 'Largura',
|
||||
insert_advhr_size : 'Altura',
|
||||
insert_advhr_noshade : 'Sem Sombra'
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// RU cp1251 lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Âñòàâèòü / ðåäàêòèðîâàòü ãîðèçîíòàëüíûé ðàçäåëèòåëü',
|
||||
insert_advhr_width : 'Øèðèíà',
|
||||
insert_advhr_size : 'Âûñîòà',
|
||||
insert_advhr_noshade : 'Áåç òåíè'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// RU KOI8-R lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : '÷ÓÔÁ×ÉÔØ / ÒÅÄÁËÔÉÒÏ×ÁÔØ ÇÏÒÉÚÏÎÔÁÌØÎÙÊ ÒÁÚÄÅÌÉÔÅÌØ',
|
||||
insert_advhr_width : 'ûÉÒÉÎÁ',
|
||||
insert_advhr_size : '÷ÙÓÏÔÁ',
|
||||
insert_advhr_noshade : 'âÅÚ ÔÅÎÉ'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// RU UTF-8 lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Вставить / редактировать горизонтальный разделитель',
|
||||
insert_advhr_width : 'Ширина',
|
||||
insert_advhr_size : 'Высота',
|
||||
insert_advhr_noshade : 'Без тени'
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Slovak lang variables
|
||||
* encoding: utf-8
|
||||
*
|
||||
* @author Vladimir VASIL vvasil@post.sk
|
||||
*
|
||||
* $Id: sk.js,v 1.1 2005/11/22 20:56:43 spocke Exp $
|
||||
*/
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Vložiť/editovať vodorovný oddeľovač',
|
||||
insert_advhr_width : 'Šírka',
|
||||
insert_advhr_size : 'Výška',
|
||||
insert_advhr_noshade : 'Nestieňovať'
|
||||
});
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// SE lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : 'Skapa/Redigera horisontell linje',
|
||||
insert_advhr_width : 'Bredd',
|
||||
insert_advhr_size : 'Höjd',
|
||||
insert_advhr_noshade : 'Ingen skugga'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// Simplified Chinese lang variables contributed by tom_cat (thomaswangyang@gmail.com)
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : '插入/编辑 水平标尺',
|
||||
insert_advhr_width : '宽度',
|
||||
insert_advhr_size : '高度',
|
||||
insert_advhr_noshade : '无阴影'
|
||||
});
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// Traditional Chinese BIG-5; Twapweb Site translated; twapweb_AT_gmail_DOT_com
|
||||
// 繁體中文 BIG-5 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
|
||||
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : '插入或編輯水平線',
|
||||
insert_advhr_width : '寬',
|
||||
insert_advhr_size : '高',
|
||||
insert_advhr_noshade : '無陰影'
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com
|
||||
// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
|
||||
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_advhr_desc : '插入或編輯水平線',
|
||||
insert_advhr_width : '寬',
|
||||
insert_advhr_size : '高',
|
||||
insert_advhr_noshade : '無陰影'
|
||||
});
|
||||
+1
@@ -0,0 +1 @@
|
||||
Check the TinyMCE documentation for details on this plugin.
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{$lang_insert_link_title}</title>
|
||||
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="jscripts/rule.js"></script>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
input.radio {
|
||||
border: 1px none #000000;
|
||||
background-color: transparent;
|
||||
vertical-align: middle;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
<base target="_self" />
|
||||
</head>
|
||||
<body onload="tinyMCEPopup.executeOnLoad('init();');">
|
||||
<form onsubmit="insertHR();return false;" action="#">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td align="center" valign="middle"><table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2" class="title">{$lang_insert_advhr_desc}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">{$lang_insert_advhr_width}:</td>
|
||||
<td nowrap="nowrap">
|
||||
<input name="width" type="text" id="width" value="" style="width: 50px; vertical-align: middle;" />
|
||||
<select name="width2" id="width2" style="width: 50px; vertical-align: middle;">
|
||||
<option value="">px</option>
|
||||
<option value="%">%</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" valign="top">{$lang_insert_advhr_size}:</td>
|
||||
<td><select id="size" name="size" style="width: 100px;">
|
||||
<option value="">Normal</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" valign="top"><input type="checkbox" name="noshade" id="noshade" class="radio" /></td>
|
||||
<td><label for="noshade">{$lang_insert_advhr_noshade}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="button" name="insert" value="{$lang_insert}" onclick="insertHR();" id="insert" /></td>
|
||||
<td align="right"><input type="button" name="cancel" value="{$lang_cancel}" onclick="cancelAction();" id="cancel" /></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,66 @@
|
||||
/* CSS file for advimage plugin popup */
|
||||
|
||||
.mceImageList {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
.mceActionPanel {
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.alignPreview {
|
||||
border: 1px solid black;
|
||||
width: 140px;
|
||||
height: 140px;
|
||||
overflow: hidden;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
.panel_wrapper div.current {
|
||||
height: 305px;
|
||||
}
|
||||
|
||||
#prev {
|
||||
margin:0px;
|
||||
border: 1px
|
||||
solid black;
|
||||
width: 99%;
|
||||
height:150px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#align, #classlist {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
#width, #height {
|
||||
vertical-align: middle;
|
||||
width: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#vspace, #hspace, #border {
|
||||
vertical-align: middle;
|
||||
width: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#classlist {
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
#constrain, #onmousemovecheck {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#id, #dir, #lang, #usemap, #longdesc {
|
||||
width: 200px;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
tinyMCE.importPluginLanguagePack('advimage','en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk');function TinyMCE_advimage_getInfo(){return{longname:'Advanced image',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advimage.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_advimage_getControlHTML(control_name){switch(control_name){case "image":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvImage\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><img id="{$editor_id}_advimage" src="{$themeurl}/images/image.gif" title="{$lang_image_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreClass(this);" /></a>';}return "";}function TinyMCE_advimage_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceAdvImage":var template=new Array();template['file']='../../plugins/advimage/image.htm';template['width']=480;template['height']=380;template['width']+=tinyMCE.getLang('lang_advimage_delta_width',0);template['height']+=tinyMCE.getLang('lang_advimage_delta_height',0);var inst=tinyMCE.getInstanceById(editor_id);var elm=inst.getFocusElement();if(elm!=null&&tinyMCE.getAttrib(elm,'class').indexOf('mceItem')!=-1)return true;tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;}return false;}function TinyMCE_advimage_cleanup(type,content){switch(type){case "insert_to_editor_dom":var imgs=content.getElementsByTagName("img");for(var i=0;i<imgs.length;i++){var onmouseover=tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i],'onmouseover'));var onmouseout=tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i],'onmouseout'));if((src=tinyMCE.getImageSrc(onmouseover))!=""){if(tinyMCE.getParam('convert_urls'))src=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],src);imgs[i].setAttribute('onmouseover',"this.src='"+src+"';");}if((src=tinyMCE.getImageSrc(onmouseout))!=""){if(tinyMCE.getParam('convert_urls'))src=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],src);imgs[i].setAttribute('onmouseout',"this.src='"+src+"';");}}break;case "get_from_editor_dom":var imgs=content.getElementsByTagName("img");for(var i=0;i<imgs.length;i++){var onmouseover=tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i],'onmouseover'));var onmouseout=tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i],'onmouseout'));if((src=tinyMCE.getImageSrc(onmouseover))!=""){if(tinyMCE.getParam('convert_urls'))src=eval(tinyMCE.settings['urlconverter_callback']+"(src, null, true);");imgs[i].setAttribute('onmouseover',"this.src='"+src+"';");}if((src=tinyMCE.getImageSrc(onmouseout))!=""){if(tinyMCE.getParam('convert_urls'))src=eval(tinyMCE.settings['urlconverter_callback']+"(src, null, true);");imgs[i].setAttribute('onmouseout',"this.src='"+src+"';");}}break;}return content;}function TinyMCE_advimage_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){tinyMCE.switchClassSticky(editor_id+'_advimage','mceButtonNormal');if(node==null)return;do{if(node.nodeName=="IMG"&&tinyMCE.getAttrib(node,'class').indexOf('mceItem')==-1)tinyMCE.switchClassSticky(editor_id+'_advimage','mceButtonSelected');}while((node=node.parentNode));return true;}
|
||||
@@ -0,0 +1,113 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('advimage', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk');
|
||||
|
||||
function TinyMCE_advimage_getInfo() {
|
||||
return {
|
||||
longname : 'Advanced image',
|
||||
author : 'Moxiecode Systems',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advimage.html',
|
||||
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
||||
};
|
||||
};
|
||||
|
||||
function TinyMCE_advimage_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "image":
|
||||
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvImage\');return false;';
|
||||
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_advimage" src="{$themeurl}/images/image.gif" title="{$lang_image_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreClass(this);" /></a>';
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
function TinyMCE_advimage_execCommand(editor_id, element, command, user_interface, value) {
|
||||
switch (command) {
|
||||
case "mceAdvImage":
|
||||
var template = new Array();
|
||||
|
||||
template['file'] = '../../plugins/advimage/image.htm';
|
||||
template['width'] = 480;
|
||||
template['height'] = 380;
|
||||
|
||||
// Language specific width and height addons
|
||||
template['width'] += tinyMCE.getLang('lang_advimage_delta_width', 0);
|
||||
template['height'] += tinyMCE.getLang('lang_advimage_delta_height', 0);
|
||||
|
||||
var inst = tinyMCE.getInstanceById(editor_id);
|
||||
var elm = inst.getFocusElement();
|
||||
|
||||
if (elm != null && tinyMCE.getAttrib(elm, 'class').indexOf('mceItem') != -1)
|
||||
return true;
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function TinyMCE_advimage_cleanup(type, content) {
|
||||
switch (type) {
|
||||
case "insert_to_editor_dom":
|
||||
var imgs = content.getElementsByTagName("img");
|
||||
for (var i=0; i<imgs.length; i++) {
|
||||
var onmouseover = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i], 'onmouseover'));
|
||||
var onmouseout = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i], 'onmouseout'));
|
||||
|
||||
if ((src = tinyMCE.getImageSrc(onmouseover)) != "") {
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], src);
|
||||
|
||||
imgs[i].setAttribute('onmouseover', "this.src='" + src + "';");
|
||||
}
|
||||
|
||||
if ((src = tinyMCE.getImageSrc(onmouseout)) != "") {
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], src);
|
||||
|
||||
imgs[i].setAttribute('onmouseout', "this.src='" + src + "';");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case "get_from_editor_dom":
|
||||
var imgs = content.getElementsByTagName("img");
|
||||
for (var i=0; i<imgs.length; i++) {
|
||||
var onmouseover = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i], 'onmouseover'));
|
||||
var onmouseout = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(imgs[i], 'onmouseout'));
|
||||
|
||||
if ((src = tinyMCE.getImageSrc(onmouseover)) != "") {
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, null, true);");
|
||||
|
||||
imgs[i].setAttribute('onmouseover', "this.src='" + src + "';");
|
||||
}
|
||||
|
||||
if ((src = tinyMCE.getImageSrc(onmouseout)) != "") {
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, null, true);");
|
||||
|
||||
imgs[i].setAttribute('onmouseout', "this.src='" + src + "';");
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return content;
|
||||
}
|
||||
|
||||
function TinyMCE_advimage_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
||||
tinyMCE.switchClassSticky(editor_id + '_advimage', 'mceButtonNormal');
|
||||
|
||||
if (node == null)
|
||||
return;
|
||||
|
||||
do {
|
||||
if (node.nodeName == "IMG" && tinyMCE.getAttrib(node, 'class').indexOf('mceItem') == -1)
|
||||
tinyMCE.switchClassSticky(editor_id + '_advimage', 'mceButtonSelected');
|
||||
} while ((node = node.parentNode));
|
||||
|
||||
return true;
|
||||
}
|
||||
+240
@@ -0,0 +1,240 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{$lang_insert_image_title}</title>
|
||||
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../utils/mctabs.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="../../utils/form_utils.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="jscripts/functions.js"></script>
|
||||
<link href="css/advimage.css" rel="stylesheet" type="text/css" />
|
||||
<base target="_self" />
|
||||
</head>
|
||||
<body id="advimage" onload="tinyMCEPopup.executeOnLoad('init();');" style="display: none">
|
||||
<form onsubmit="insertAction();return false;" action="#">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{$lang_advimage_tab_general}</a></span></li>
|
||||
<li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{$lang_advimage_tab_appearance}</a></span></li>
|
||||
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{$lang_advimage_tab_advanced}</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel_wrapper">
|
||||
<div id="general_panel" class="panel current">
|
||||
<fieldset>
|
||||
<legend>{$lang_advimage_general}</legend>
|
||||
|
||||
<table class="properties">
|
||||
<tr>
|
||||
<td class="column1"><label id="srclabel" for="src">{$lang_insert_image_src}</label></td>
|
||||
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input name="src" type="text" id="src" value="" onchange="showPreviewImage(this.value);" /></td>
|
||||
<td id="srcbrowsercontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr id="imagelistsrcrow">
|
||||
<td class="column1"><label for="imagelistsrc">{$lang_image_list}</label></td>
|
||||
<td colspan="2" id="imagelistsrccontainer"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column1"><label id="altlabel" for="alt">{$lang_insert_image_alt}</label></td>
|
||||
<td colspan="2"><input id="alt" name="alt" type="text" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column1"><label id="titlelabel" for="title">{$lang_advimage_title}</label></td>
|
||||
<td colspan="2"><input id="title" name="title" type="text" value="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{$lang_advimage_preview}</legend>
|
||||
<div id="prev"></div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="appearance_panel" class="panel">
|
||||
<fieldset>
|
||||
<legend>{$lang_advimage_tab_appearance}</legend>
|
||||
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr>
|
||||
<td class="column1"><label id="alignlabel" for="align">{$lang_insert_image_align}</label></td>
|
||||
<td><select id="align" name="align" onchange="changeAppearance();">
|
||||
<option value="">{$lang_insert_image_align_default}</option>
|
||||
<option value="baseline">{$lang_insert_image_align_baseline}</option>
|
||||
<option value="top">{$lang_insert_image_align_top}</option>
|
||||
<option value="middle">{$lang_insert_image_align_middle}</option>
|
||||
<option value="bottom">{$lang_insert_image_align_bottom}</option>
|
||||
<option value="texttop">{$lang_insert_image_align_texttop}</option>
|
||||
<option value="absmiddle">{$lang_insert_image_align_absmiddle}</option>
|
||||
<option value="absbottom">{$lang_insert_image_align_absbottom}</option>
|
||||
<option value="left">{$lang_insert_image_align_left}</option>
|
||||
<option value="right">{$lang_insert_image_align_right}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td rowspan="6" valign="top">
|
||||
<div class="alignPreview">
|
||||
<img id="alignSampleImg" src="images/sample.gif" alt="{$lang_advimage_example_img}" />
|
||||
Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam
|
||||
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum
|
||||
edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
|
||||
erat volutpat.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="widthlabel" for="width">{$lang_insert_image_dimensions}</label></td>
|
||||
<td nowrap="nowrap">
|
||||
<input name="width" type="text" id="width" value="" size="5" maxlength="5" onchange="changeHeight();" /> x
|
||||
<input name="height" type="text" id="height" value="" size="5" maxlength="5" onchange="changeWidth();" /> px
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
|
||||
<td><label id="constrainlabel" for="constrain">{$lang_advimage_constrain_proportions}</label></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="vspacelabel" for="vspace">{$lang_insert_image_vspace}</label></td>
|
||||
<td><input name="vspace" type="text" id="vspace" value="" size="3" maxlength="3" onchange="changeAppearance();updateStyle();" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="hspacelabel" for="hspace">{$lang_insert_image_hspace}</label></td>
|
||||
<td><input name="hspace" type="text" id="hspace" value="" size="3" maxlength="3" onchange="changeAppearance();updateStyle();" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="borderlabel" for="border">{$lang_insert_image_border}</label></td>
|
||||
<td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="changeAppearance();updateStyle();" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="classlabel" for="classlist">{$lang_class_name}</label></td>
|
||||
<td colspan="2">
|
||||
<select id="classlist" name="classlist">
|
||||
<option value="" selected>{$lang_not_set}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="stylelabel" for="style">{$lang_advimage_style}</label></td>
|
||||
<td colspan="2"><input id="style" name="style" type="text" value="" onchange="styleUpdated();" /></td>
|
||||
</tr>
|
||||
|
||||
<!-- <tr>
|
||||
<td class="column1"><label id="classeslabel" for="classes">{$lang_advimage_classes}</label></td>
|
||||
<td colspan="2"><input id="classes" name="classes" type="text" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
|
||||
</tr> -->
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="advanced_panel" class="panel">
|
||||
<fieldset>
|
||||
<legend>{$lang_advimage_swap_image}</legend>
|
||||
|
||||
<input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="changeMouseMove();" />
|
||||
<label id="onmousemovechecklabel" for="onmousemovecheck">{$lang_advimage_alt_image}</label>
|
||||
|
||||
<table border="0" cellpadding="4" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{$lang_advimage_mouseover}</label></td>
|
||||
<td><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input id="onmouseoversrc" name="onmouseoversrc" type="text" value="" /></td>
|
||||
<td id="onmouseoversrccontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr id="imagelistoverrow">
|
||||
<td class="column1"><label for="imagelistover">{$lang_image_list}</label></td>
|
||||
<td id="imagelistovercontainer"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{$lang_advimage_mouseout}</label></td>
|
||||
<td class="column2"><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input id="onmouseoutsrc" name="onmouseoutsrc" type="text" value="" /></td>
|
||||
<td id="onmouseoutsrccontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr id="imagelistoutrow">
|
||||
<td class="column1"><label for="imagelistout">{$lang_image_list}</label></td>
|
||||
<td id="imagelistoutcontainer"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{$lang_advimage_misc}</legend>
|
||||
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr>
|
||||
<td class="column1"><label id="idlabel" for="id">{$lang_advimage_id}</label></td>
|
||||
<td><input id="id" name="id" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="dirlabel" for="dir">{$lang_advimage_langdir}</label></td>
|
||||
<td>
|
||||
<select id="dir" name="dir" onchange="changeAppearance();">
|
||||
<option value="">{$lang_not_set}</option>
|
||||
<option value="ltr">{$lang_advimage_ltr}</option>
|
||||
<option value="rtl">{$lang_advimage_rtl}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="langlabel" for="lang">{$lang_advimage_langcode}</label></td>
|
||||
<td>
|
||||
<input id="lang" name="lang" type="text" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="usemaplabel" for="usemap">{$lang_advimage_image_map}</label></td>
|
||||
<td>
|
||||
<input id="usemap" name="usemap" type="text" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="longdesclabel" for="longdesc">{$lang_advimage_long_desc}</label></td>
|
||||
<td><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input id="longdesc" name="longdesc" type="text" value="" /></td>
|
||||
<td id="longdesccontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mceActionPanel">
|
||||
<div style="float: left">
|
||||
<input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="insertAction();" />
|
||||
</div>
|
||||
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{$lang_cancel}" onclick="cancelAction();" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,545 @@
|
||||
/* Functions for the advimage plugin popup */
|
||||
|
||||
var preloadImg = null;
|
||||
var orgImageWidth, orgImageHeight;
|
||||
|
||||
function preinit() {
|
||||
// Initialize
|
||||
tinyMCE.setWindowArg('mce_windowresize', false);
|
||||
|
||||
// Import external list url javascript
|
||||
var url = tinyMCE.getParam("external_image_list_url");
|
||||
if (url != null) {
|
||||
// Fix relative
|
||||
if (url.charAt(0) != '/' && url.indexOf('://') == -1)
|
||||
url = tinyMCE.documentBasePath + "/" + url;
|
||||
|
||||
document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + url + '"></sc'+'ript>');
|
||||
}
|
||||
}
|
||||
|
||||
function convertURL(url, node, on_save) {
|
||||
return eval("tinyMCEPopup.windowOpener." + tinyMCE.settings['urlconverter_callback'] + "(url, node, on_save);");
|
||||
}
|
||||
|
||||
function getImageSrc(str) {
|
||||
var pos = -1;
|
||||
|
||||
if (!str)
|
||||
return "";
|
||||
|
||||
if ((pos = str.indexOf('this.src=')) != -1) {
|
||||
var src = str.substring(pos + 10);
|
||||
|
||||
src = src.substring(0, src.indexOf('\''));
|
||||
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
src = convertURL(src, null, true);
|
||||
|
||||
return src;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
function init() {
|
||||
tinyMCEPopup.resizeToInnerSize();
|
||||
|
||||
var formObj = document.forms[0];
|
||||
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
||||
var elm = inst.getFocusElement();
|
||||
var action = "insert";
|
||||
var html = "";
|
||||
|
||||
// Image list src
|
||||
html = getImageListHTML('imagelistsrc','src','onSelectMainImage');
|
||||
if (html == "")
|
||||
document.getElementById("imagelistsrcrow").style.display = 'none';
|
||||
else
|
||||
document.getElementById("imagelistsrccontainer").innerHTML = html;
|
||||
|
||||
// Image list oversrc
|
||||
html = getImageListHTML('imagelistover','onmouseoversrc');
|
||||
if (html == "")
|
||||
document.getElementById("imagelistoverrow").style.display = 'none';
|
||||
else
|
||||
document.getElementById("imagelistovercontainer").innerHTML = html;
|
||||
|
||||
// Image list outsrc
|
||||
html = getImageListHTML('imagelistout','onmouseoutsrc');
|
||||
if (html == "")
|
||||
document.getElementById("imagelistoutrow").style.display = 'none';
|
||||
else
|
||||
document.getElementById("imagelistoutcontainer").innerHTML = html;
|
||||
|
||||
// Src browser
|
||||
html = getBrowserHTML('srcbrowser','src','image','advimage');
|
||||
document.getElementById("srcbrowsercontainer").innerHTML = html;
|
||||
|
||||
// Over browser
|
||||
html = getBrowserHTML('oversrcbrowser','onmouseoversrc','image','advimage');
|
||||
document.getElementById("onmouseoversrccontainer").innerHTML = html;
|
||||
|
||||
// Out browser
|
||||
html = getBrowserHTML('outsrcbrowser','onmouseoutsrc','image','advimage');
|
||||
document.getElementById("onmouseoutsrccontainer").innerHTML = html;
|
||||
|
||||
// Longdesc browser
|
||||
html = getBrowserHTML('longdescbrowser','longdesc','file','advimage');
|
||||
document.getElementById("longdesccontainer").innerHTML = html;
|
||||
|
||||
// Resize some elements
|
||||
if (isVisible('srcbrowser'))
|
||||
document.getElementById('src').style.width = '260px';
|
||||
|
||||
if (isVisible('oversrcbrowser'))
|
||||
document.getElementById('onmouseoversrc').style.width = '260px';
|
||||
|
||||
if (isVisible('outsrcbrowser'))
|
||||
document.getElementById('onmouseoutsrc').style.width = '260px';
|
||||
|
||||
if (isVisible('longdescbrowser'))
|
||||
document.getElementById('longdesc').style.width = '180px';
|
||||
|
||||
// Check action
|
||||
if (elm != null && elm.nodeName == "IMG")
|
||||
action = "update";
|
||||
|
||||
formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true);
|
||||
|
||||
if (action == "update") {
|
||||
var src = tinyMCE.getAttrib(elm, 'src');
|
||||
var onmouseoversrc = getImageSrc(tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseover')));
|
||||
var onmouseoutsrc = getImageSrc(tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseout')));
|
||||
|
||||
src = convertURL(src, elm, true);
|
||||
|
||||
// Use mce_src if found
|
||||
var mceRealSrc = tinyMCE.getAttrib(elm, 'mce_src');
|
||||
if (mceRealSrc != "") {
|
||||
src = mceRealSrc;
|
||||
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
src = convertURL(src, elm, true);
|
||||
}
|
||||
|
||||
if (onmouseoversrc != "" && tinyMCE.getParam('convert_urls'))
|
||||
onmouseoversrc = convertURL(onmouseoversrc, elm, true);
|
||||
|
||||
if (onmouseoutsrc != "" && tinyMCE.getParam('convert_urls'))
|
||||
onmouseoutsrc = convertURL(onmouseoutsrc, elm, true);
|
||||
|
||||
// Setup form data
|
||||
var style = tinyMCE.parseStyle(tinyMCE.getAttrib(elm, "style"));
|
||||
|
||||
// Store away old size
|
||||
orgImageWidth = trimSize(getStyle(elm, 'width'))
|
||||
orgImageHeight = trimSize(getStyle(elm, 'height'));
|
||||
|
||||
formObj.src.value = src;
|
||||
formObj.alt.value = tinyMCE.getAttrib(elm, 'alt');
|
||||
formObj.title.value = tinyMCE.getAttrib(elm, 'title');
|
||||
formObj.border.value = trimSize(getStyle(elm, 'border', 'borderWidth'));
|
||||
formObj.vspace.value = tinyMCE.getAttrib(elm, 'vspace');
|
||||
formObj.hspace.value = tinyMCE.getAttrib(elm, 'hspace');
|
||||
formObj.width.value = orgImageWidth;
|
||||
formObj.height.value = orgImageHeight;
|
||||
formObj.onmouseoversrc.value = onmouseoversrc;
|
||||
formObj.onmouseoutsrc.value = onmouseoutsrc;
|
||||
formObj.id.value = tinyMCE.getAttrib(elm, 'id');
|
||||
formObj.dir.value = tinyMCE.getAttrib(elm, 'dir');
|
||||
formObj.lang.value = tinyMCE.getAttrib(elm, 'lang');
|
||||
formObj.longdesc.value = tinyMCE.getAttrib(elm, 'longdesc');
|
||||
formObj.usemap.value = tinyMCE.getAttrib(elm, 'usemap');
|
||||
formObj.style.value = tinyMCE.serializeStyle(style);
|
||||
|
||||
// Select by the values
|
||||
if (tinyMCE.isMSIE)
|
||||
selectByValue(formObj, 'align', getStyle(elm, 'align', 'styleFloat'));
|
||||
else
|
||||
selectByValue(formObj, 'align', getStyle(elm, 'align', 'cssFloat'));
|
||||
|
||||
addClassesToList('classlist', 'advimage_styles');
|
||||
|
||||
selectByValue(formObj, 'classlist', tinyMCE.getAttrib(elm, 'class'));
|
||||
selectByValue(formObj, 'imagelistsrc', src);
|
||||
selectByValue(formObj, 'imagelistover', onmouseoversrc);
|
||||
selectByValue(formObj, 'imagelistout', onmouseoutsrc);
|
||||
|
||||
updateStyle();
|
||||
showPreviewImage(src, true);
|
||||
changeAppearance();
|
||||
|
||||
window.focus();
|
||||
} else
|
||||
addClassesToList('classlist', 'advimage_styles');
|
||||
|
||||
// If option enabled default contrain proportions to checked
|
||||
if (tinyMCE.getParam("advimage_constrain_proportions", true))
|
||||
formObj.constrain.checked = true;
|
||||
|
||||
// Check swap image if valid data
|
||||
if (formObj.onmouseoversrc.value != "" || formObj.onmouseoutsrc.value != "")
|
||||
setSwapImageDisabled(false);
|
||||
else
|
||||
setSwapImageDisabled(true);
|
||||
}
|
||||
|
||||
function setSwapImageDisabled(state) {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
formObj.onmousemovecheck.checked = !state;
|
||||
|
||||
setBrowserDisabled('overbrowser', state);
|
||||
setBrowserDisabled('outbrowser', state);
|
||||
|
||||
if (formObj.imagelistover)
|
||||
formObj.imagelistover.disabled = state;
|
||||
|
||||
if (formObj.imagelistout)
|
||||
formObj.imagelistout.disabled = state;
|
||||
|
||||
formObj.onmouseoversrc.disabled = state;
|
||||
formObj.onmouseoutsrc.disabled = state;
|
||||
}
|
||||
|
||||
function setAttrib(elm, attrib, value) {
|
||||
var formObj = document.forms[0];
|
||||
var valueElm = formObj.elements[attrib];
|
||||
|
||||
if (typeof(value) == "undefined" || value == null) {
|
||||
value = "";
|
||||
|
||||
if (valueElm)
|
||||
value = valueElm.value;
|
||||
}
|
||||
|
||||
if (value != "") {
|
||||
elm.setAttribute(attrib, value);
|
||||
|
||||
if (attrib == "style")
|
||||
attrib = "style.cssText";
|
||||
|
||||
if (attrib == "longdesc")
|
||||
attrib = "longDesc";
|
||||
|
||||
if (attrib == "width") {
|
||||
attrib = "style.width";
|
||||
value = value + "px";
|
||||
}
|
||||
|
||||
if (attrib == "height") {
|
||||
attrib = "style.height";
|
||||
value = value + "px";
|
||||
}
|
||||
|
||||
if (attrib == "class")
|
||||
attrib = "className";
|
||||
|
||||
eval('elm.' + attrib + "=value;");
|
||||
} else
|
||||
elm.removeAttribute(attrib);
|
||||
}
|
||||
|
||||
function makeAttrib(attrib, value) {
|
||||
var formObj = document.forms[0];
|
||||
var valueElm = formObj.elements[attrib];
|
||||
|
||||
if (typeof(value) == "undefined" || value == null) {
|
||||
value = "";
|
||||
|
||||
if (valueElm)
|
||||
value = valueElm.value;
|
||||
}
|
||||
|
||||
if (value == "")
|
||||
return "";
|
||||
|
||||
// XML encode it
|
||||
value = value.replace(/&/g, '&');
|
||||
value = value.replace(/\"/g, '"');
|
||||
value = value.replace(/</g, '<');
|
||||
value = value.replace(/>/g, '&gr;');
|
||||
|
||||
return ' ' + attrib + '="' + value + '"';
|
||||
}
|
||||
|
||||
function insertAction() {
|
||||
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
||||
var elm = inst.getFocusElement();
|
||||
var formObj = document.forms[0];
|
||||
var src = formObj.src.value;
|
||||
var onmouseoversrc = formObj.onmouseoversrc.value;
|
||||
var onmouseoutsrc = formObj.onmouseoutsrc.value;
|
||||
|
||||
if (tinyMCE.getParam("accessibility_warnings")) {
|
||||
if (formObj.alt.value == "") {
|
||||
var answer = confirm(tinyMCE.getLang('lang_advimage_missing_alt', '', true));
|
||||
if (answer == true) {
|
||||
formObj.alt.value = " ";
|
||||
}
|
||||
} else {
|
||||
var answer = true;
|
||||
}
|
||||
|
||||
if (!answer)
|
||||
return;
|
||||
}
|
||||
|
||||
if (onmouseoversrc && onmouseoversrc != "")
|
||||
onmouseoversrc = "this.src='" + convertURL(onmouseoversrc, tinyMCE.imgElement) + "';";
|
||||
|
||||
if (onmouseoutsrc && onmouseoutsrc != "")
|
||||
onmouseoutsrc = "this.src='" + convertURL(onmouseoutsrc, tinyMCE.imgElement) + "';";
|
||||
|
||||
if (elm != null && elm.nodeName == "IMG") {
|
||||
setAttrib(elm, 'src', convertURL(src, tinyMCE.imgElement));
|
||||
setAttrib(elm, 'mce_src', src);
|
||||
setAttrib(elm, 'alt');
|
||||
setAttrib(elm, 'title');
|
||||
setAttrib(elm, 'border');
|
||||
setAttrib(elm, 'vspace');
|
||||
setAttrib(elm, 'hspace');
|
||||
setAttrib(elm, 'width');
|
||||
setAttrib(elm, 'height');
|
||||
setAttrib(elm, 'onmouseover', onmouseoversrc);
|
||||
setAttrib(elm, 'onmouseout', onmouseoutsrc);
|
||||
setAttrib(elm, 'id');
|
||||
setAttrib(elm, 'dir');
|
||||
setAttrib(elm, 'lang');
|
||||
setAttrib(elm, 'longdesc');
|
||||
setAttrib(elm, 'usemap');
|
||||
setAttrib(elm, 'style');
|
||||
setAttrib(elm, 'class', getSelectValue(formObj, 'classlist'));
|
||||
setAttrib(elm, 'align', getSelectValue(formObj, 'align'));
|
||||
|
||||
//tinyMCEPopup.execCommand("mceRepaint");
|
||||
|
||||
// Repaint if dimensions changed
|
||||
if (formObj.width.value != orgImageWidth || formObj.height.value != orgImageHeight)
|
||||
inst.repaint();
|
||||
|
||||
// Refresh in old MSIE
|
||||
if (tinyMCE.isMSIE5)
|
||||
elm.outerHTML = elm.outerHTML;
|
||||
} else {
|
||||
var html = "<img";
|
||||
|
||||
html += makeAttrib('src', convertURL(src, tinyMCE.imgElement));
|
||||
html += makeAttrib('mce_src', src);
|
||||
html += makeAttrib('alt');
|
||||
html += makeAttrib('title');
|
||||
html += makeAttrib('border');
|
||||
html += makeAttrib('vspace');
|
||||
html += makeAttrib('hspace');
|
||||
html += makeAttrib('width');
|
||||
html += makeAttrib('height');
|
||||
html += makeAttrib('onmouseover', onmouseoversrc);
|
||||
html += makeAttrib('onmouseout', onmouseoutsrc);
|
||||
html += makeAttrib('id');
|
||||
html += makeAttrib('dir');
|
||||
html += makeAttrib('lang');
|
||||
html += makeAttrib('longdesc');
|
||||
html += makeAttrib('usemap');
|
||||
html += makeAttrib('style');
|
||||
html += makeAttrib('class', getSelectValue(formObj, 'classlist'));
|
||||
html += makeAttrib('align', getSelectValue(formObj, 'align'));
|
||||
html += " />";
|
||||
|
||||
tinyMCEPopup.execCommand("mceInsertContent", false, html);
|
||||
}
|
||||
|
||||
tinyMCE._setEventsEnabled(inst.getBody(), false);
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
|
||||
function cancelAction() {
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
|
||||
function changeAppearance() {
|
||||
var formObj = document.forms[0];
|
||||
var img = document.getElementById('alignSampleImg');
|
||||
|
||||
if (img) {
|
||||
img.align = formObj.align.value;
|
||||
img.border = formObj.border.value;
|
||||
img.hspace = formObj.hspace.value;
|
||||
img.vspace = formObj.vspace.value;
|
||||
}
|
||||
}
|
||||
|
||||
function changeMouseMove() {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
setSwapImageDisabled(!formObj.onmousemovecheck.checked);
|
||||
}
|
||||
|
||||
function updateStyle() {
|
||||
var formObj = document.forms[0];
|
||||
var st = tinyMCE.parseStyle(formObj.style.value);
|
||||
|
||||
if (tinyMCE.getParam('inline_styles', false)) {
|
||||
st['width'] = formObj.width.value == '' ? '' : formObj.width.value + "px";
|
||||
st['height'] = formObj.height.value == '' ? '' : formObj.height.value + "px";
|
||||
st['border-width'] = formObj.border.value == '' ? '' : formObj.border.value + "px";
|
||||
st['margin-top'] = formObj.vspace.value == '' ? '' : formObj.vspace.value + "px";
|
||||
st['margin-bottom'] = formObj.vspace.value == '' ? '' : formObj.vspace.value + "px";
|
||||
st['margin-left'] = formObj.hspace.value == '' ? '' : formObj.hspace.value + "px";
|
||||
st['margin-right'] = formObj.hspace.value == '' ? '' : formObj.hspace.value + "px";
|
||||
} else {
|
||||
st['width'] = st['height'] = st['border-width'] = null;
|
||||
|
||||
if (st['margin-top'] == st['margin-bottom'])
|
||||
st['margin-top'] = st['margin-bottom'] = null;
|
||||
|
||||
if (st['margin-left'] == st['margin-right'])
|
||||
st['margin-left'] = st['margin-right'] = null;
|
||||
}
|
||||
|
||||
formObj.style.value = tinyMCE.serializeStyle(st);
|
||||
}
|
||||
|
||||
function styleUpdated() {
|
||||
var formObj = document.forms[0];
|
||||
var st = tinyMCE.parseStyle(formObj.style.value);
|
||||
|
||||
if (st['width'])
|
||||
formObj.width.value = st['width'].replace('px', '');
|
||||
|
||||
if (st['height'])
|
||||
formObj.height.value = st['height'].replace('px', '');
|
||||
|
||||
if (st['margin-top'] && st['margin-top'] == st['margin-bottom'])
|
||||
formObj.vspace.value = st['margin-top'].replace('px', '');
|
||||
|
||||
if (st['margin-left'] && st['margin-left'] == st['margin-right'])
|
||||
formObj.hspace.value = st['margin-left'].replace('px', '');
|
||||
|
||||
if (st['border-width'])
|
||||
formObj.border.value = st['border-width'].replace('px', '');
|
||||
}
|
||||
|
||||
function changeHeight() {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
if (!formObj.constrain.checked || !preloadImg) {
|
||||
updateStyle();
|
||||
return;
|
||||
}
|
||||
|
||||
if (formObj.width.value == "" || formObj.height.value == "")
|
||||
return;
|
||||
|
||||
var temp = (formObj.width.value / preloadImg.width) * preloadImg.height;
|
||||
formObj.height.value = temp.toFixed(0);
|
||||
updateStyle();
|
||||
}
|
||||
|
||||
function changeWidth() {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
if (!formObj.constrain.checked || !preloadImg) {
|
||||
updateStyle();
|
||||
return;
|
||||
}
|
||||
|
||||
if (formObj.width.value == "" || formObj.height.value == "")
|
||||
return;
|
||||
|
||||
var temp = (formObj.height.value / preloadImg.height) * preloadImg.width;
|
||||
formObj.width.value = temp.toFixed(0);
|
||||
updateStyle();
|
||||
}
|
||||
|
||||
function onSelectMainImage(target_form_element, name, value) {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
formObj.alt.value = name;
|
||||
formObj.title.value = name;
|
||||
|
||||
resetImageData();
|
||||
showPreviewImage(formObj.elements[target_form_element].value, false);
|
||||
}
|
||||
|
||||
function showPreviewImage(src, start) {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
selectByValue(document.forms[0], 'imagelistsrc', src);
|
||||
|
||||
var elm = document.getElementById('prev');
|
||||
var src = src == "" ? src : tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], src);
|
||||
|
||||
if (!start && tinyMCE.getParam("advimage_update_dimensions_onchange", true))
|
||||
resetImageData();
|
||||
|
||||
if (src == "")
|
||||
elm.innerHTML = "";
|
||||
else
|
||||
elm.innerHTML = '<img src="' + src + '" border="0" />'
|
||||
|
||||
getImageData(src);
|
||||
}
|
||||
|
||||
function getImageData(src) {
|
||||
preloadImg = new Image();
|
||||
|
||||
tinyMCE.addEvent(preloadImg, "load", updateImageData);
|
||||
tinyMCE.addEvent(preloadImg, "error", resetImageData);
|
||||
|
||||
preloadImg.src = src;
|
||||
}
|
||||
|
||||
function updateImageData() {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
if (formObj.width.value == "")
|
||||
formObj.width.value = preloadImg.width;
|
||||
|
||||
if (formObj.height.value == "")
|
||||
formObj.height.value = preloadImg.height;
|
||||
|
||||
updateStyle();
|
||||
}
|
||||
|
||||
function resetImageData() {
|
||||
var formObj = document.forms[0];
|
||||
formObj.width.value = formObj.height.value = "";
|
||||
}
|
||||
|
||||
function getSelectValue(form_obj, field_name) {
|
||||
var elm = form_obj.elements[field_name];
|
||||
|
||||
if (elm == null || elm.options == null)
|
||||
return "";
|
||||
|
||||
return elm.options[elm.selectedIndex].value;
|
||||
}
|
||||
|
||||
function getImageListHTML(elm_id, target_form_element, onchange_func) {
|
||||
if (typeof(tinyMCEImageList) == "undefined" || tinyMCEImageList.length == 0)
|
||||
return "";
|
||||
|
||||
var html = "";
|
||||
|
||||
html += '<select id="' + elm_id + '" name="' + elm_id + '"';
|
||||
html += ' class="mceImageList" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
|
||||
html += 'this.options[this.selectedIndex].value;';
|
||||
|
||||
if (typeof(onchange_func) != "undefined")
|
||||
html += onchange_func + '(\'' + target_form_element + '\',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);';
|
||||
|
||||
html += '"><option value="">---</option>';
|
||||
|
||||
for (var i=0; i<tinyMCEImageList.length; i++)
|
||||
html += '<option value="' + tinyMCEImageList[i][1] + '">' + tinyMCEImageList[i][0] + '</option>';
|
||||
|
||||
html += '</select>';
|
||||
|
||||
return html;
|
||||
|
||||
// tinyMCE.debug('-- image list start --', html, '-- image list end --');
|
||||
}
|
||||
|
||||
// While loading
|
||||
preinit();
|
||||
@@ -0,0 +1,8 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_image_alt2 : 'Název obrázku',
|
||||
insert_image_onmousemove : 'Alternativní obrázek',
|
||||
insert_image_mouseover : 'pøi najetí myši',
|
||||
insert_image_mouseout : 'pøi odjetí myši'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Cyffredinol',
|
||||
tab_appearance : 'Ymddangosiad',
|
||||
tab_advanced : 'Uwch',
|
||||
general : 'Cyffredinol',
|
||||
title : 'Teitl',
|
||||
preview : 'Rhagolwg',
|
||||
constrain_proportions : 'Cadw cymesuredd',
|
||||
langdir : 'Cyfeiriad iaith',
|
||||
langcode : 'Côd iaith',
|
||||
long_desc : 'Dolen disgrifiad hir',
|
||||
style : 'Arddull',
|
||||
classes : 'Dosbarthiadau',
|
||||
ltr : 'Chwith i\'r dde',
|
||||
rtl : 'Dde i\'r chwith',
|
||||
id : 'Id',
|
||||
image_map : 'Map delwedd',
|
||||
swap_image : 'Cyfnewid delwedd',
|
||||
alt_image : 'Delwedd amgen',
|
||||
mouseover : 'llygoden drosodd',
|
||||
mouseout : 'llygoden allan',
|
||||
misc : 'Arall',
|
||||
example_img : 'Delwedd rhagolwg delwedd',
|
||||
missing_alt : 'Wyt ti\'n sicr eisiau parhau heb gynnwys Disgrifiad Delwedd? Heb un, mae\'n bosib na fydd y ddelwedd yn hygyrch i ddefnyddwyr gydag anableddau, neu rhai gyda phorwr testun, neu sy\'n pori gyda delweddau wedi\'u diffodd.'
|
||||
});
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
// DK lang variables contributed by Jan Moelgaard
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Generelt',
|
||||
tab_appearance : 'Udseende',
|
||||
tab_advanced : 'Avanceret',
|
||||
general : 'Generelt',
|
||||
title : 'Overskrift',
|
||||
preview : 'Se',
|
||||
constrain_proportions : 'Fasthold proportioner',
|
||||
langdir : 'Tekstretning',
|
||||
langcode : 'Sprogkode',
|
||||
long_desc : 'Langt beskrivelseslink',
|
||||
style : 'Style',
|
||||
classes : 'Klasser',
|
||||
ltr : 'Venstre til højre',
|
||||
rtl : 'Højre til venstre',
|
||||
id : 'Id',
|
||||
image_map : 'Billedkort',
|
||||
swap_image : 'Alternativt billede',
|
||||
alt_image : 'Alternative image',
|
||||
mouseover : 'ved mouse over',
|
||||
mouseout : 'ved mouse out',
|
||||
misc : 'Diverse',
|
||||
example_img : 'Appearance preview image'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// DE lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Allgemein',
|
||||
tab_appearance : 'Erscheinungsbild',
|
||||
tab_advanced : 'Erweitert',
|
||||
general : 'Allgemein',
|
||||
title : 'Titel',
|
||||
preview : 'Vorschau',
|
||||
constrain_proportions : 'Verhältnis beibehalten',
|
||||
langdir : 'Sprachrichtung',
|
||||
langcode : 'Sprach-Code',
|
||||
long_desc : 'Link zu ausführlicher Beschreibung',
|
||||
style : 'CSS-Stil',
|
||||
classes : 'CSS-Klassen',
|
||||
ltr : 'Von links nach rechts',
|
||||
rtl : 'Von rechts nach links',
|
||||
id : 'ID',
|
||||
image_map : 'Image Map (Bild mit sensitiven Bereichen)',
|
||||
swap_image : 'Bild austauschen',
|
||||
alt_image : 'Alternatives Bild',
|
||||
mouseover : 'für Mouse-Over',
|
||||
mouseout : 'für Mouse-Out',
|
||||
misc : 'Sonstiges',
|
||||
example_img : 'Erscheinungsbild Vorschau Bild',
|
||||
missing_alt : 'Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'General',
|
||||
tab_appearance : 'Appearance',
|
||||
tab_advanced : 'Advanced',
|
||||
general : 'General',
|
||||
title : 'Title',
|
||||
preview : 'Preview',
|
||||
constrain_proportions : 'Constrain proportions',
|
||||
langdir : 'Language direction',
|
||||
langcode : 'Language code',
|
||||
long_desc : 'Long description link',
|
||||
style : 'Style',
|
||||
classes : 'Classes',
|
||||
ltr : 'Left to right',
|
||||
rtl : 'Right to left',
|
||||
id : 'Id',
|
||||
image_map : 'Image map',
|
||||
swap_image : 'Swap image',
|
||||
alt_image : 'Alternative image',
|
||||
mouseover : 'for mouse over',
|
||||
mouseout : 'for mouse out',
|
||||
misc : 'Miscellaneous',
|
||||
example_img : 'Appearance preview image',
|
||||
missing_alt : 'Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.'
|
||||
});
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* ES lang variables
|
||||
*
|
||||
* Authors : Alvaro Velasco,
|
||||
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
|
||||
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
|
||||
* Last Updated : October 17, 2005
|
||||
* TinyMCE Version : 2.0RC3
|
||||
*/
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'General',
|
||||
tab_appearance : 'Aspecto',
|
||||
tab_advanced : 'Avanzado',
|
||||
general : 'General',
|
||||
title : 'Titulo',
|
||||
preview : 'Vista previa',
|
||||
constrain_proportions : 'Bloquear relación de aspecto',
|
||||
langdir : 'Dirección del texto',
|
||||
langcode : 'Código del idioma',
|
||||
long_desc : 'Descripción larga del link',
|
||||
style : 'Estilo',
|
||||
classes : 'Clases',
|
||||
ltr : 'De izquierda a derecha',
|
||||
rtl : 'De derecha a izquierda',
|
||||
id : 'Id',
|
||||
image_map : 'Mapa de la imagen',
|
||||
swap_image : 'Intercambio de imagen',
|
||||
alt_image : 'Imagen alternativa',
|
||||
mouseover : 'Al pasar el ratón por encima de la imagen',
|
||||
mouseout : 'Al sacar el ratón de la imagen',
|
||||
misc : 'Misceláneo',
|
||||
example_img : 'Aspecto vista previa imagen',
|
||||
missing_alt : '¿Estás seguro de querer continuar sin incluir una descripción de la imagen? Sin ella la imagen puede no ser accesible para ciertos usuarios discapacitados, o para los usuarios que usen navegadores de texto, o para los usuarios que tengan las imagenes desactivadas en su navegador.'
|
||||
});
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// IR lang variables
|
||||
// Persian (Farsi) language pack (for IRAN)
|
||||
// By: Morteza Zafari
|
||||
// Lost@LostLord.com
|
||||
// http://www.LostLord.com
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
dir : 'rtl',
|
||||
insert_image_alt2 : '????? ???',
|
||||
insert_image_onmousemove : '??? ???????',
|
||||
insert_image_mouseover : '??? ??????? ????? ???? ?????? ????',
|
||||
insert_image_mouseout : '??? ??????? ????? ???? ?????? ????'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// CA_FR lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_image_alt2 : 'Titre de l\'image',
|
||||
insert_image_onmousemove : 'Image alternative',
|
||||
insert_image_mouseover : 'pour le «mouse over»',
|
||||
insert_image_mouseout : 'pour le «mouse out»'
|
||||
});
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
// French lang variables by Laurent Dran
|
||||
// Modifié par Normand Lamoureux le 2005-11-12
|
||||
|
||||
tinyMCE.addToLang('advlink',{
|
||||
general_tab : 'Général',
|
||||
popup_tab : 'Pop-up',
|
||||
events_tab : 'Événements',
|
||||
advanced_tab : 'Avancé',
|
||||
general_props : 'Propriétés générales',
|
||||
popup_props : 'Propriétés du pop-up',
|
||||
event_props : 'Événements',
|
||||
advanced_props : 'Propriétés avancées',
|
||||
popup_opts : 'Options',
|
||||
anchor_names : 'Ancres',
|
||||
target_same : 'Ovrir dans la même fenêtre/cadre',
|
||||
target_parent : 'Ouvrir dans la fenêtre/cadre parent',
|
||||
target_top : 'Ouvrir dans la fenêtre principale',
|
||||
target_blank : 'Ouvrir dans une nouvelle fenêtre',
|
||||
popup : 'Pop-up Javascript',
|
||||
popup_url : 'URL du pop-up',
|
||||
popup_name : 'Nom de la fenêtre',
|
||||
popup_return : 'Insérer \'return false;\'',
|
||||
popup_scrollbars : 'Montrer les barres de défilement',
|
||||
popup_statusbar : 'Montrer la barre de statut',
|
||||
popup_toolbar : 'Montrer la barre d\'outils',
|
||||
popup_menubar : 'Montrer la barre de menus',
|
||||
popup_location : 'Montrer la barre de titre',
|
||||
popup_resizable : 'Permettre le redimensionnement',
|
||||
popup_dependent : 'Dépendent (Mozilla/Firefox seulement)',
|
||||
popup_size : 'Taille',
|
||||
popup_position : 'Position (X/Y)',
|
||||
id : 'Id',
|
||||
style: 'Style en ligne',
|
||||
classes : 'Classe CSS',
|
||||
target_name : 'Nom de la cible',
|
||||
langdir : 'Sens d\'écriture',
|
||||
target_langcode : 'Code de langue de la cible',
|
||||
langcode : 'Code de langue du libellé',
|
||||
encoding : 'Encodage de la cible',
|
||||
mime : 'Type MIME de la cible',
|
||||
rel : 'Relation de la page vers la cible',
|
||||
rev : 'Relation de la cible vers la page',
|
||||
tabindex : 'Attribut tabindex',
|
||||
accesskey : 'Attribut accesskey',
|
||||
ltr : 'Vers la droite',
|
||||
rtl : 'Vers la gauche'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// CA_FR lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_image_alt2 : 'Titre de l\'image',
|
||||
insert_image_onmousemove : 'Image alternative',
|
||||
insert_image_mouseover : 'pour le «mouse over»',
|
||||
insert_image_mouseout : 'pour le «mouse out»'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// HE lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'כללי',
|
||||
tab_appearance : 'מראה',
|
||||
tab_advanced : 'מתקדם',
|
||||
general : 'כללי',
|
||||
title : 'כותרת',
|
||||
preview : 'תצוגה מקדימה',
|
||||
constrain_proportions : 'הגבלת מימדים',
|
||||
langdir : 'כיוון שפה',
|
||||
langcode : 'קוד שפה',
|
||||
long_desc : 'קישור להסבר ארוך',
|
||||
style : 'סגנון',
|
||||
classes : 'Classים',
|
||||
ltr : 'שמאל לימין',
|
||||
rtl : 'ימין לשמאל',
|
||||
id : 'Id',
|
||||
image_map : 'מפת תמונה',
|
||||
swap_image : 'החלפת תמונה',
|
||||
alt_image : 'תמונה חלופית',
|
||||
mouseover : 'כשסמן העכבר מעל התמונה',
|
||||
mouseout : 'כשסמן העכבר עוזב את התמונה',
|
||||
misc : 'אחר',
|
||||
example_img : 'תצוגה מקדימה של מראה',
|
||||
missing_alt : 'האם אתה בטוח שברצונך להמשיך מבלי לכלול תיאור של התמונה? ללא תיאור, יתכן כי התמונה לא תהיה נגישה למשתמשים בעלי מוגבלויות, או כאלו המשתמשים בדפדפן טקסטואלי, או שמסיירים ברשת בלי להציג תמונות.'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// HU lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Általános',
|
||||
tab_appearance : 'Megjelenés',
|
||||
tab_advanced : 'Haladó',
|
||||
general : 'Általános',
|
||||
title : 'Cím',
|
||||
preview : 'Elõnézet',
|
||||
constrain_proportions : 'Arányok kényszerítése',
|
||||
langdir : 'Szöveg pozíció',
|
||||
langcode : 'Szöveg kód',
|
||||
long_desc : 'Hosszú leírás link',
|
||||
style : 'Stílus',
|
||||
classes : 'Osztályok',
|
||||
ltr : 'Balról jobbra',
|
||||
rtl : 'Jobbról balra',
|
||||
id : 'Azonosító',
|
||||
image_map : 'Kép térkép',
|
||||
swap_image : 'Kép váltás',
|
||||
alt_image : 'Másik kép',
|
||||
mouseover : 'egér rámutatásra',
|
||||
mouseout : 'egér elmozdítására',
|
||||
misc : 'Egyéb',
|
||||
example_img : 'Elõnézeti kép megjelenése',
|
||||
missing_alt : 'Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// Iceland lang variables by Johannes Birgir Jensson
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Aðalstillingar',
|
||||
tab_appearance : 'Útlit',
|
||||
tab_advanced : 'Flóknari valkostir',
|
||||
general : 'Helstu upplýsingar',
|
||||
title : 'Titill',
|
||||
preview : 'Forskoðun',
|
||||
constrain_proportions : 'Vernda hlutföll',
|
||||
langdir : 'Ritháttur tungumáls',
|
||||
langcode : 'Tungumálskóði',
|
||||
long_desc : 'Tengill á ítarlýsingu',
|
||||
style : 'Stíll',
|
||||
classes : 'Klassi',
|
||||
ltr : 'Vinstri til hægri',
|
||||
rtl : 'Hægri til vinstri',
|
||||
id : 'Id',
|
||||
image_map : 'Myndarkort',
|
||||
swap_image : 'Skipta mynd',
|
||||
alt_image : 'Skiptimynd',
|
||||
mouseover : 'þegar mús fer yfir',
|
||||
mouseout : 'þegar mús fer frá',
|
||||
misc : 'Ýmislegt',
|
||||
example_img : 'Forskoðunarmynd',
|
||||
missing_alt : 'Ertu viss um að þú viljir halda áfram án myndarlýsingar? Án hennar munu sumir notendur, eins og fatlaðir eða með gamla vafra ekki geta séð myndina.'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
// KO lang variables
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_image_alt2 : '그림 제목',
|
||||
insert_image_onmousemove : '대체 이미�ö',
|
||||
insert_image_mouseover : '마우스를 올렸을 때',
|
||||
insert_image_mouseout : '마우스를 내렸을 때'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// nb = Norwegian (bokmål) lang variables by Knut B. Jacobsen
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Generelle innstillinger',
|
||||
tab_appearance : 'Visuelle innstillinger',
|
||||
tab_advanced : 'Avanserte innstillinger',
|
||||
general : 'Generell',
|
||||
title : 'Tittel',
|
||||
preview : 'Forhåndsvisning',
|
||||
constrain_proportions : 'Behold proporsjonene',
|
||||
langdir : 'Skrift retning',
|
||||
langcode : 'Språk kode',
|
||||
long_desc : 'Lang beskrivelse',
|
||||
style : 'Stil',
|
||||
classes : 'CSS klasser',
|
||||
ltr : 'Venstre mot høyre',
|
||||
rtl : 'Høyre mot venstre',
|
||||
id : 'Id',
|
||||
image_map : 'Opprett bilde',
|
||||
swap_image : 'Bytt bilde',
|
||||
alt_image : 'Alternativt bilde',
|
||||
mouseover : 'når pekeren er over',
|
||||
mouseout : 'når pekeren er utenfor',
|
||||
misc : 'Annet',
|
||||
example_img : 'Forhåndsvisnings bilde',
|
||||
missing_alt : 'Er du sikker på at du vil fortsette uten å sette inn en beskrivelse av bildet?'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// NL lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Algemeen',
|
||||
tab_appearance : 'Beeld',
|
||||
tab_advanced : 'Geavanceerd',
|
||||
general : 'Algemeen',
|
||||
title : 'Titel',
|
||||
preview : 'Voorbeeld',
|
||||
constrain_proportions : 'Verhoudingen behouden',
|
||||
langdir : 'Taalrichting',
|
||||
langcode : 'Taalcode',
|
||||
long_desc : 'Link naar lange omschrijving',
|
||||
style : 'Stijl',
|
||||
classes : 'Stijlen',
|
||||
ltr : 'Links naar rechts',
|
||||
rtl : 'Rechts naar links',
|
||||
id : 'Id',
|
||||
image_map : 'Afbeelding opdelen',
|
||||
swap_image : 'Afbeelding wisselen',
|
||||
alt_image : 'Alternatieve afbeelding',
|
||||
mouseover : 'voor muis-over',
|
||||
mouseout : 'voor muis-uit',
|
||||
misc : 'Diversen',
|
||||
example_img : 'Voorbeeld afbeelding',
|
||||
missing_alt : 'Zonder een beschrijving van de afbeelding, zal de pagina voor mensen met een visuele handicap of met afbeeldingen uitgeschakeld niet toegankelijk zijn. Weet u zeker dat u wilt doorgaan zonder beschrijving?'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// nn = Norwegian (nynorsk) lang variables by Knut B. Jacobsen
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Generelle innstillinger',
|
||||
tab_appearance : 'Visuelle innstillinger',
|
||||
tab_advanced : 'Avanserte innstillinger',
|
||||
general : 'Generell',
|
||||
title : 'Tittel',
|
||||
preview : 'Forhåndsvisning',
|
||||
constrain_proportions : 'Behold proporsjonene',
|
||||
langdir : 'Skrift retning',
|
||||
langcode : 'Språk kode',
|
||||
long_desc : 'Lang beskrivelse',
|
||||
style : 'Stil',
|
||||
classes : 'CSS klasser',
|
||||
ltr : 'Venstre mot høgre',
|
||||
rtl : 'Høgre mot venstre',
|
||||
id : 'Id',
|
||||
image_map : 'Opprett bilde',
|
||||
swap_image : 'Bytt bilde',
|
||||
alt_image : 'Alternativt bilde',
|
||||
mouseover : 'når pekeren er over',
|
||||
mouseout : 'når pekeren er utenfor',
|
||||
misc : 'Annet',
|
||||
example_img : 'Forhåndsvisningsbilde',
|
||||
missing_alt : 'Er du sikker på at du vil fortsette uten å sette inn ein beskrivelse av bildet?'
|
||||
});
|
||||
Whitespace-only changes.
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* 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('advimage',{
|
||||
tab_general : 'Geral',
|
||||
tab_appearance : 'Aparência',
|
||||
tab_advanced : 'Avançado',
|
||||
general : 'Geral',
|
||||
title : 'Título',
|
||||
preview : 'Visualizar (Preview)',
|
||||
constrain_proportions : 'Bloquear proporções',
|
||||
langdir : 'Direção da linguagem',
|
||||
langcode : 'Código da linguagem',
|
||||
long_desc : 'Descrição completa do link',
|
||||
style : 'Estilo',
|
||||
classes : 'Classes',
|
||||
ltr : 'Esquerda para direita',
|
||||
rtl : 'Direita para esquerda',
|
||||
id : 'Id',
|
||||
image_map : 'Mapa da imagem',
|
||||
swap_image : 'Trocar imagem',
|
||||
alt_image : 'Imagem alternativa',
|
||||
mouseover : 'para o mouse sobre o link',
|
||||
mouseout : 'para o mouse fora do link',
|
||||
misc : 'Miscelânia',
|
||||
example_img : 'Aparência Visualizar Imagem',
|
||||
missing_alt : 'Tem certeza que deseja continuar sem incluir uma descrição para imagem? Sem isso a imagem pode não estar acessível para alguns usuários especiáis, ou para aqueles que utilizam um navegador em modo texto, ou para navegadores com imagens desativadas.'
|
||||
});
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
// RU cp1251 lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Основные',
|
||||
tab_appearance : 'Визуализация',
|
||||
tab_advanced : 'Расширенные',
|
||||
general : 'Главные',
|
||||
title : 'Заголовок',
|
||||
preview : 'Предварительный просмотр',
|
||||
constrain_proportions : 'Сохранить пропорции',
|
||||
langdir : 'Описание языка',
|
||||
langcode : 'Код языка',
|
||||
long_desc : 'Полное описание',
|
||||
style : 'Стили',
|
||||
classes : 'Классы',
|
||||
ltr : 'Слева направо',
|
||||
rtl : 'Справа налево',
|
||||
id : 'Id',
|
||||
image_map : 'Карта изображения',
|
||||
swap_image : 'Подмена картинки',
|
||||
alt_image : 'Альтернативное изображение',
|
||||
mouseover : 'при наведении мыши',
|
||||
mouseout : 'когда уводите мышь',
|
||||
misc : 'Прочее',
|
||||
example_img : 'Визуализация расположения картинки'
|
||||
});
|
||||
@@ -0,0 +1,26 @@
|
||||
// RU KOI8-R lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Основные',
|
||||
tab_appearance : 'Визуализация',
|
||||
tab_advanced : 'Расширенные',
|
||||
general : 'Главные',
|
||||
title : 'Заголовок',
|
||||
preview : 'Предварительный просмотр',
|
||||
constrain_proportions : 'Сохранить пропорции',
|
||||
langdir : 'Описание языка',
|
||||
langcode : 'Код языка',
|
||||
long_desc : 'Полное описание',
|
||||
style : 'Стили',
|
||||
classes : 'Классы',
|
||||
ltr : 'Слева направо',
|
||||
rtl : 'Справа налево',
|
||||
id : 'Id',
|
||||
image_map : 'Карта изображения',
|
||||
swap_image : 'Подмена картинки',
|
||||
alt_image : 'Альтернативное изображение',
|
||||
mouseover : 'при наведении мыши',
|
||||
mouseout : 'когда уводите мышь',
|
||||
misc : 'Прочее',
|
||||
example_img : 'Визуализация расположения картинки'
|
||||
});
|
||||
@@ -0,0 +1,26 @@
|
||||
// RU UTF-8 lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Основные',
|
||||
tab_appearance : 'Визуализация',
|
||||
tab_advanced : 'Расширенные',
|
||||
general : 'Главные',
|
||||
title : 'Заголовок',
|
||||
preview : 'Предварительный просмотр',
|
||||
constrain_proportions : 'Сохранить пропорции',
|
||||
langdir : 'Описание языка',
|
||||
langcode : 'Код языка',
|
||||
long_desc : 'Полное описание',
|
||||
style : 'Стили',
|
||||
classes : 'Классы',
|
||||
ltr : 'Слева направо',
|
||||
rtl : 'Справа налево',
|
||||
id : 'Id',
|
||||
image_map : 'Карта изображения',
|
||||
swap_image : 'Подмена картинки',
|
||||
alt_image : 'Альтернативное изображение',
|
||||
mouseover : 'при наведении мыши',
|
||||
mouseout : 'когда уводите мышь',
|
||||
misc : 'Прочее',
|
||||
example_img : 'Визуализация расположения картинки'
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* 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('',{
|
||||
insert_image_alt2 : 'Názov obrázku',
|
||||
insert_image_onmousemove : 'Alternatívny obrázok',
|
||||
insert_image_mouseover : 'pri najet? myšou',
|
||||
insert_image_mouseout : 'pri odjet? myšou'
|
||||
});
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// SE lang variables
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : 'Generella inställningar',
|
||||
tab_appearance : 'Visuella inställningar',
|
||||
tab_advanced : 'Avancerade inställningar',
|
||||
general : 'Generella',
|
||||
title : 'Titel',
|
||||
preview : 'Förhandsgranskning',
|
||||
constrain_proportions : 'Behåll proportionerna',
|
||||
langdir : 'Skrift riktning',
|
||||
langcode : 'Språk kåd',
|
||||
long_desc : 'Long beskrivning',
|
||||
style : 'Stil',
|
||||
classes : 'CSS Classer',
|
||||
ltr : 'Vänster till höger',
|
||||
rtl : 'Höger till vänster',
|
||||
id : 'Id',
|
||||
image_map : 'Bild karta',
|
||||
swap_image : 'Byt bild',
|
||||
alt_image : 'Alternativ bild',
|
||||
mouseover : 'när pekaren är över',
|
||||
mouseout : 'när pekaren är utanför',
|
||||
misc : 'Övrigt',
|
||||
example_img : 'Förhandsgransknings bild',
|
||||
missing_alt : 'Är du säker på att du vill fortsätta utan att skriva en bild beskrivning. Utan en alternativ beskrivning är bilden inte handikapanpassad.'
|
||||
});
|
||||
@@ -0,0 +1,27 @@
|
||||
// Simplified Chinese lang variables contributed by tom_cat (thomaswangyang@gmail.com)
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : '一般',
|
||||
tab_appearance : '显示',
|
||||
tab_advanced : '高级',
|
||||
general : '一般',
|
||||
title : '标题',
|
||||
preview : '预览',
|
||||
constrain_proportions : '约束属性',
|
||||
langdir : '书写方向',
|
||||
langcode : '语言编码',
|
||||
long_desc : '长描述链接',
|
||||
style : '风格',
|
||||
classes : '类',
|
||||
ltr : '从左至右',
|
||||
rtl : '从右至左',
|
||||
id : '表识',
|
||||
image_map : '图片对应',
|
||||
swap_image : '调换图片',
|
||||
alt_image : '候选图片',
|
||||
mouseover : '鼠标在上面时',
|
||||
mouseout : '鼠标离开时',
|
||||
misc : '杂项',
|
||||
example_img : 'Appearance preview image',
|
||||
missing_alt : '您确认要在没有图片说明的情况下继续吗? 这样其他关闭图片浏览的用户将无法注意到你在这里有图片。'
|
||||
});
|
||||
@@ -0,0 +1,29 @@
|
||||
// Traditional Chinese BIG-5; Twapweb Site translated; twapweb_AT_gmail_DOT_com
|
||||
// 繁體中文 BIG-5 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
|
||||
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : '一般',
|
||||
tab_appearance : '外觀',
|
||||
tab_advanced : '進階',
|
||||
general : '一般',
|
||||
title : '標題',
|
||||
preview : '預覽',
|
||||
constrain_proportions : '比例限制',
|
||||
langdir : '語言用法',
|
||||
langcode : '語碼',
|
||||
long_desc : '完整說明連結',
|
||||
style : '式樣',
|
||||
classes : '分類',
|
||||
ltr : '由左至右',
|
||||
rtl : '由右至左',
|
||||
id : '編號',
|
||||
image_map : '圖檔映射',
|
||||
swap_image : '圖檔交換',
|
||||
alt_image : '替代圖檔',
|
||||
mouseover : '當滑鼠移入',
|
||||
mouseout : '當滑鼠移出',
|
||||
misc : '雜項',
|
||||
example_img : '外觀 預覽 圖檔',
|
||||
missing_alt : '確定要在不含圖檔說明的狀況下繼續執行嗎?\n沒有圖檔說明可能會導致那些像是以純文字瀏覽器或\n關閉瀏覽器圖檔顯現功能的用戶無法順利讀取資訊。'
|
||||
});
|
||||
@@ -0,0 +1,29 @@
|
||||
// Traditional Chinese UTF-8; Twapweb Site translated; twapweb_AT_gmail_DOT_com
|
||||
// 繁體中文 UTF-8 ;數位應用坊製作; twapweb_AT_gmail_DOT_com
|
||||
|
||||
|
||||
tinyMCE.addToLang('advimage',{
|
||||
tab_general : '一般',
|
||||
tab_appearance : '外觀',
|
||||
tab_advanced : '進階',
|
||||
general : '一般',
|
||||
title : '標題',
|
||||
preview : '預覽',
|
||||
constrain_proportions : '比例限制',
|
||||
langdir : '語言用法',
|
||||
langcode : '語碼',
|
||||
long_desc : '完整說明連結',
|
||||
style : '式樣',
|
||||
classes : '分類',
|
||||
ltr : '由左至右',
|
||||
rtl : '由右至左',
|
||||
id : '編號',
|
||||
image_map : '圖檔映射',
|
||||
swap_image : '圖檔交換',
|
||||
alt_image : '替代圖檔',
|
||||
mouseover : '當滑鼠移入',
|
||||
mouseout : '當滑鼠移出',
|
||||
misc : '雜項',
|
||||
example_img : '外觀 預覽 圖檔',
|
||||
missing_alt : '確定要在不含圖檔說明的狀況下繼續執行嗎?\n沒有圖檔說明可能會導致那些像是以純文字瀏覽器或\n關閉瀏覽器圖檔顯現功能的用戶無法順利讀取資訊。'
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
Check the TinyMCE documentation for details on this plugin.
|
||||
@@ -0,0 +1,35 @@
|
||||
/* CSS file for advimage plugin popup */
|
||||
|
||||
.mceLinkList, .mceAnchorList, #targetlist {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
.mceActionPanel {
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.panel_wrapper div.current {
|
||||
height: 320px;
|
||||
}
|
||||
|
||||
#classlist, #title, #href {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
#popupurl, #popupname {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#popupwidth, #popupheight, #popupleft, #popuptop {
|
||||
width: 30px;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#events_panel input {
|
||||
width: 200px;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
tinyMCE.importPluginLanguagePack('advlink','en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk');function TinyMCE_advlink_getInfo(){return{longname:'Advanced link',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};};function TinyMCE_advlink_getControlHTML(control_name){switch(control_name){case "link":var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvLink\');return false;';return '<a href="javascript:'+cmd+'" onclick="'+cmd+'" target="_self" onmousedown="return false;"><img id="{$editor_id}_advlink" src="{$themeurl}/images/link.gif" title="{$lang_link_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreClass(this);" /></a>';}return "";}function TinyMCE_advlink_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceAdvLink":var anySelection=false;var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();if(tinyMCE.selectedElement)anySelection=(tinyMCE.selectedElement.nodeName.toLowerCase()=="img")||(selectedText&&selectedText.length>0);if(anySelection||(focusElm!=null&&focusElm.nodeName=="A")){var template=new Array();template['file']='../../plugins/advlink/link.htm';template['width']=480;template['height']=400;template['width']+=tinyMCE.getLang('lang_advlink_delta_width',0);template['height']+=tinyMCE.getLang('lang_advlink_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});}return true;}return false;}function TinyMCE_advlink_handleNodeChange(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){tinyMCE.switchClassSticky(editor_id+'_advlink','mceButtonDisabled',true);if(node==null)return;if(any_selection)tinyMCE.switchClassSticky(editor_id+'_advlink','mceButtonNormal',false);do{if(node.nodeName=="A"&&tinyMCE.getAttrib(node,'href')!="")tinyMCE.switchClassSticky(editor_id+'_advlink','mceButtonSelected',false);}while((node=node.parentNode));return true;}
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('advlink', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr,pl,pt_br,nl,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,es,is,zh_tw,zh_tw_utf8,sk');
|
||||
|
||||
function TinyMCE_advlink_getInfo() {
|
||||
return {
|
||||
longname : 'Advanced link',
|
||||
author : 'Moxiecode Systems',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_advlink.html',
|
||||
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
||||
};
|
||||
};
|
||||
|
||||
function TinyMCE_advlink_getControlHTML(control_name) {
|
||||
switch (control_name) {
|
||||
case "link":
|
||||
var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceAdvLink\');return false;';
|
||||
return '<a href="javascript:' + cmd + '" onclick="' + cmd + '" target="_self" onmousedown="return false;"><img id="{$editor_id}_advlink" src="{$themeurl}/images/link.gif" title="{$lang_link_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreClass(this);" /></a>';
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
function TinyMCE_advlink_execCommand(editor_id, element, command, user_interface, value) {
|
||||
switch (command) {
|
||||
case "mceAdvLink":
|
||||
var anySelection = false;
|
||||
var inst = tinyMCE.getInstanceById(editor_id);
|
||||
var focusElm = inst.getFocusElement();
|
||||
|
||||
if (tinyMCE.selectedElement)
|
||||
anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0);
|
||||
|
||||
if (anySelection || (focusElm != null && focusElm.nodeName == "A")) {
|
||||
var template = new Array();
|
||||
|
||||
template['file'] = '../../plugins/advlink/link.htm';
|
||||
template['width'] = 480;
|
||||
template['height'] = 400;
|
||||
|
||||
// Language specific width and height addons
|
||||
template['width'] += tinyMCE.getLang('lang_advlink_delta_width', 0);
|
||||
template['height'] += tinyMCE.getLang('lang_advlink_delta_height', 0);
|
||||
|
||||
tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function TinyMCE_advlink_handleNodeChange(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
|
||||
tinyMCE.switchClassSticky(editor_id + '_advlink', 'mceButtonDisabled', true);
|
||||
|
||||
if (node == null)
|
||||
return;
|
||||
|
||||
if (any_selection)
|
||||
tinyMCE.switchClassSticky(editor_id + '_advlink', 'mceButtonNormal', false);
|
||||
|
||||
do {
|
||||
if (node.nodeName == "A" && tinyMCE.getAttrib(node, 'href') != "")
|
||||
tinyMCE.switchClassSticky(editor_id + '_advlink', 'mceButtonSelected', false);
|
||||
} while ((node = node.parentNode));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -0,0 +1,564 @@
|
||||
/* Functions for the advlink plugin popup */
|
||||
|
||||
var templates = {
|
||||
"window.open" : "window.open('${url}','${target}','${options}')"
|
||||
};
|
||||
|
||||
function preinit() {
|
||||
// Initialize
|
||||
tinyMCE.setWindowArg('mce_windowresize', false);
|
||||
|
||||
// Import external list url javascript
|
||||
var url = tinyMCE.getParam("external_link_list_url");
|
||||
if (url != null) {
|
||||
// Fix relative
|
||||
if (url.charAt(0) != '/' && url.indexOf('://') == -1)
|
||||
url = tinyMCE.documentBasePath + "/" + url;
|
||||
|
||||
document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + url + '"></sc'+'ript>');
|
||||
}
|
||||
}
|
||||
|
||||
function changeClass() {
|
||||
var formObj = document.forms[0];
|
||||
formObj.classes.value = getSelectValue(formObj, 'classlist');
|
||||
}
|
||||
|
||||
function init() {
|
||||
tinyMCEPopup.resizeToInnerSize();
|
||||
|
||||
var formObj = document.forms[0];
|
||||
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
||||
var elm = inst.getFocusElement();
|
||||
var action = "insert";
|
||||
var html;
|
||||
|
||||
document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
|
||||
document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
|
||||
document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href');
|
||||
document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href');
|
||||
document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
|
||||
|
||||
// Link list
|
||||
html = getLinkListHTML('linklisthref','href');
|
||||
if (html == "")
|
||||
document.getElementById("linklisthrefrow").style.display = 'none';
|
||||
else
|
||||
document.getElementById("linklisthrefcontainer").innerHTML = html;
|
||||
|
||||
// Resize some elements
|
||||
if (isVisible('hrefbrowser'))
|
||||
document.getElementById('href').style.width = '260px';
|
||||
|
||||
if (isVisible('popupurlbrowser'))
|
||||
document.getElementById('popupurl').style.width = '180px';
|
||||
|
||||
elm = tinyMCE.getParentElement(elm, "a");
|
||||
if (elm != null && elm.nodeName == "A")
|
||||
action = "update";
|
||||
|
||||
formObj.insert.value = tinyMCE.getLang('lang_' + action, 'Insert', true);
|
||||
|
||||
setPopupControlsDisabled(true);
|
||||
|
||||
if (action == "update") {
|
||||
var href = tinyMCE.getAttrib(elm, 'href');
|
||||
|
||||
href = convertURL(href, elm, true);
|
||||
|
||||
// Use mce_href if found
|
||||
var mceRealHref = tinyMCE.getAttrib(elm, 'mce_href');
|
||||
if (mceRealHref != "") {
|
||||
href = mceRealHref;
|
||||
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
href = convertURL(href, elm, true);
|
||||
}
|
||||
|
||||
var onclick = tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onclick'));
|
||||
|
||||
// Setup form data
|
||||
setFormValue('href', href);
|
||||
setFormValue('title', tinyMCE.getAttrib(elm, 'title'));
|
||||
setFormValue('id', tinyMCE.getAttrib(elm, 'id'));
|
||||
setFormValue('style', tinyMCE.serializeStyle(tinyMCE.parseStyle(tinyMCE.getAttrib(elm, "style"))));
|
||||
setFormValue('rel', tinyMCE.getAttrib(elm, 'rel'));
|
||||
setFormValue('rev', tinyMCE.getAttrib(elm, 'rev'));
|
||||
setFormValue('charset', tinyMCE.getAttrib(elm, 'charset'));
|
||||
setFormValue('hreflang', tinyMCE.getAttrib(elm, 'hreflang'));
|
||||
setFormValue('dir', tinyMCE.getAttrib(elm, 'dir'));
|
||||
setFormValue('lang', tinyMCE.getAttrib(elm, 'lang'));
|
||||
setFormValue('tabindex', tinyMCE.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
|
||||
setFormValue('accesskey', tinyMCE.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
|
||||
setFormValue('type', tinyMCE.getAttrib(elm, 'type'));
|
||||
setFormValue('onfocus', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onfocus')));
|
||||
setFormValue('onblur', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onblur')));
|
||||
setFormValue('onclick', onclick);
|
||||
setFormValue('ondblclick', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'ondblclick')));
|
||||
setFormValue('onmousedown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousedown')));
|
||||
setFormValue('onmouseup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseup')));
|
||||
setFormValue('onmouseover', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseover')));
|
||||
setFormValue('onmousemove', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmousemove')));
|
||||
setFormValue('onmouseout', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onmouseout')));
|
||||
setFormValue('onkeypress', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeypress')));
|
||||
setFormValue('onkeydown', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeydown')));
|
||||
setFormValue('onkeyup', tinyMCE.cleanupEventStr(tinyMCE.getAttrib(elm, 'onkeyup')));
|
||||
setFormValue('target', tinyMCE.getAttrib(elm, 'target'));
|
||||
setFormValue('classes', tinyMCE.getAttrib(elm, 'class'));
|
||||
|
||||
// Parse onclick data
|
||||
if (onclick != null && onclick.indexOf('window.open') != -1)
|
||||
parseWindowOpen(onclick);
|
||||
else
|
||||
parseFunction(onclick);
|
||||
|
||||
// Select by the values
|
||||
selectByValue(formObj, 'dir', tinyMCE.getAttrib(elm, 'dir'));
|
||||
selectByValue(formObj, 'rel', tinyMCE.getAttrib(elm, 'rel'));
|
||||
selectByValue(formObj, 'rev', tinyMCE.getAttrib(elm, 'rev'));
|
||||
selectByValue(formObj, 'linklisthref', href);
|
||||
|
||||
if (href.charAt(0) == '#')
|
||||
selectByValue(formObj, 'anchorlist', href);
|
||||
|
||||
addClassesToList('classlist', 'advlink_styles');
|
||||
|
||||
selectByValue(formObj, 'classlist', tinyMCE.getAttrib(elm, 'class'), true);
|
||||
selectByValue(formObj, 'targetlist', tinyMCE.getAttrib(elm, 'target'), true);
|
||||
} else
|
||||
addClassesToList('classlist', 'advlink_styles');
|
||||
|
||||
window.focus();
|
||||
}
|
||||
|
||||
function setFormValue(name, value) {
|
||||
document.forms[0].elements[name].value = value;
|
||||
}
|
||||
|
||||
function convertURL(url, node, on_save) {
|
||||
return eval("tinyMCEPopup.windowOpener." + tinyMCE.settings['urlconverter_callback'] + "(url, node, on_save);");
|
||||
}
|
||||
|
||||
function parseWindowOpen(onclick) {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
// Preprocess center code
|
||||
if (onclick.indexOf('return false;') != -1) {
|
||||
formObj.popupreturn.checked = true;
|
||||
onclick = onclick.replace('return false;', '');
|
||||
}
|
||||
|
||||
var onClickData = parseLink(onclick);
|
||||
|
||||
if (onClickData != null) {
|
||||
formObj.ispopup.checked = true;
|
||||
setPopupControlsDisabled(false);
|
||||
|
||||
var onClickWindowOptions = parseOptions(onClickData['options']);
|
||||
var url = onClickData['url'];
|
||||
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
url = convertURL(url, null, true);
|
||||
|
||||
formObj.popupname.value = onClickData['target'];
|
||||
formObj.popupurl.value = url;
|
||||
formObj.popupwidth.value = getOption(onClickWindowOptions, 'width');
|
||||
formObj.popupheight.value = getOption(onClickWindowOptions, 'height');
|
||||
|
||||
formObj.popupleft.value = getOption(onClickWindowOptions, 'left');
|
||||
formObj.popuptop.value = getOption(onClickWindowOptions, 'top');
|
||||
|
||||
if (formObj.popupleft.value.indexOf('screen') != -1)
|
||||
formObj.popupleft.value = "c";
|
||||
|
||||
if (formObj.popuptop.value.indexOf('screen') != -1)
|
||||
formObj.popuptop.value = "c";
|
||||
|
||||
formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes";
|
||||
formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes";
|
||||
formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes";
|
||||
formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes";
|
||||
formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes";
|
||||
formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes";
|
||||
formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes";
|
||||
|
||||
buildOnClick();
|
||||
}
|
||||
}
|
||||
|
||||
function parseFunction(onclick) {
|
||||
var formObj = document.forms[0];
|
||||
var onClickData = parseLink(onclick);
|
||||
|
||||
// TODO: Add stuff here
|
||||
}
|
||||
|
||||
function getOption(opts, name) {
|
||||
return typeof(opts[name]) == "undefined" ? "" : opts[name];
|
||||
}
|
||||
|
||||
function setPopupControlsDisabled(state) {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
formObj.popupname.disabled = state;
|
||||
formObj.popupurl.disabled = state;
|
||||
formObj.popupwidth.disabled = state;
|
||||
formObj.popupheight.disabled = state;
|
||||
formObj.popupleft.disabled = state;
|
||||
formObj.popuptop.disabled = state;
|
||||
formObj.popuplocation.disabled = state;
|
||||
formObj.popupscrollbars.disabled = state;
|
||||
formObj.popupmenubar.disabled = state;
|
||||
formObj.popupresizable.disabled = state;
|
||||
formObj.popuptoolbar.disabled = state;
|
||||
formObj.popupstatus.disabled = state;
|
||||
formObj.popupreturn.disabled = state;
|
||||
formObj.popupdependent.disabled = state;
|
||||
|
||||
setBrowserDisabled('popupurlbrowser', state);
|
||||
}
|
||||
|
||||
function parseLink(link) {
|
||||
link = link.replace(new RegExp(''', 'g'), "'");
|
||||
|
||||
var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1");
|
||||
|
||||
// Is function name a template function
|
||||
var template = templates[fnName];
|
||||
if (template) {
|
||||
// Build regexp
|
||||
var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi"));
|
||||
var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\(";
|
||||
var replaceStr = "";
|
||||
for (var i=0; i<variableNames.length; i++) {
|
||||
// Is string value
|
||||
if (variableNames[i].indexOf("'${") != -1)
|
||||
regExp += "'(.*)'";
|
||||
else // Number value
|
||||
regExp += "([0-9]*)";
|
||||
|
||||
replaceStr += "$" + (i+1);
|
||||
|
||||
// Cleanup variable name
|
||||
variableNames[i] = variableNames[i].replace(new RegExp("[^A-Za-z0-9]", "gi"), "");
|
||||
|
||||
if (i != variableNames.length-1) {
|
||||
regExp += "\\s*,\\s*";
|
||||
replaceStr += "<delim>";
|
||||
} else
|
||||
regExp += ".*";
|
||||
}
|
||||
|
||||
regExp += "\\);?";
|
||||
|
||||
// Build variable array
|
||||
var variables = new Array();
|
||||
variables["_function"] = fnName;
|
||||
var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split('<delim>');
|
||||
for (var i=0; i<variableNames.length; i++)
|
||||
variables[variableNames[i]] = variableValues[i];
|
||||
|
||||
return variables;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function parseOptions(opts) {
|
||||
if (opts == null || opts == "")
|
||||
return new Array();
|
||||
|
||||
// Cleanup the options
|
||||
opts = opts.toLowerCase();
|
||||
opts = opts.replace(/;/g, ",");
|
||||
opts = opts.replace(/[^0-9a-z=,]/g, "");
|
||||
|
||||
var optionChunks = opts.split(',');
|
||||
var options = new Array();
|
||||
|
||||
for (var i=0; i<optionChunks.length; i++) {
|
||||
var parts = optionChunks[i].split('=');
|
||||
|
||||
if (parts.length == 2)
|
||||
options[parts[0]] = parts[1];
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
function buildOnClick() {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
if (!formObj.ispopup.checked) {
|
||||
formObj.onclick.value = "";
|
||||
return;
|
||||
}
|
||||
|
||||
var onclick = "window.open('";
|
||||
var url = formObj.popupurl.value;
|
||||
|
||||
if (tinyMCE.getParam('convert_urls'))
|
||||
url = convertURL(url, null, true);
|
||||
|
||||
onclick += url + "','";
|
||||
onclick += formObj.popupname.value + "','";
|
||||
|
||||
if (formObj.popuplocation.checked)
|
||||
onclick += "location=yes,";
|
||||
|
||||
if (formObj.popupscrollbars.checked)
|
||||
onclick += "scrollbars=yes,";
|
||||
|
||||
if (formObj.popupmenubar.checked)
|
||||
onclick += "menubar=yes,";
|
||||
|
||||
if (formObj.popupresizable.checked)
|
||||
onclick += "resizable=yes,";
|
||||
|
||||
if (formObj.popuptoolbar.checked)
|
||||
onclick += "toolbar=yes,";
|
||||
|
||||
if (formObj.popupstatus.checked)
|
||||
onclick += "status=yes,";
|
||||
|
||||
if (formObj.popupdependent.checked)
|
||||
onclick += "dependent=yes,";
|
||||
|
||||
if (formObj.popupwidth.value != "")
|
||||
onclick += "width=" + formObj.popupwidth.value + ",";
|
||||
|
||||
if (formObj.popupheight.value != "")
|
||||
onclick += "height=" + formObj.popupheight.value + ",";
|
||||
|
||||
if (formObj.popupleft.value != "") {
|
||||
if (formObj.popupleft.value != "c")
|
||||
onclick += "left=" + formObj.popupleft.value + ",";
|
||||
else
|
||||
onclick += "left='+(screen.availWidth/2-" + (formObj.popupwidth.value/2) + ")+',";
|
||||
}
|
||||
|
||||
if (formObj.popuptop.value != "") {
|
||||
if (formObj.popuptop.value != "c")
|
||||
onclick += "top=" + formObj.popuptop.value + ",";
|
||||
else
|
||||
onclick += "top='+(screen.availHeight/2-" + (formObj.popupheight.value/2) + ")+',";
|
||||
}
|
||||
|
||||
if (onclick.charAt(onclick.length-1) == ',')
|
||||
onclick = onclick.substring(0, onclick.length-1);
|
||||
|
||||
onclick += "');";
|
||||
|
||||
if (formObj.popupreturn.checked)
|
||||
onclick += "return false;";
|
||||
|
||||
// tinyMCE.debug(onclick);
|
||||
|
||||
formObj.onclick.value = onclick;
|
||||
}
|
||||
|
||||
function setAttrib(elm, attrib, value) {
|
||||
var formObj = document.forms[0];
|
||||
var valueElm = formObj.elements[attrib.toLowerCase()];
|
||||
|
||||
if (typeof(value) == "undefined" || value == null) {
|
||||
value = "";
|
||||
|
||||
if (valueElm)
|
||||
value = valueElm.value;
|
||||
}
|
||||
|
||||
if (value != "") {
|
||||
elm.setAttribute(attrib.toLowerCase(), value);
|
||||
|
||||
if (attrib == "style")
|
||||
attrib = "style.cssText";
|
||||
|
||||
if (attrib.substring(0, 2) == 'on')
|
||||
value = 'return true;' + value;
|
||||
|
||||
if (attrib == "class")
|
||||
attrib = "className";
|
||||
|
||||
eval('elm.' + attrib + "=value;");
|
||||
} else
|
||||
elm.removeAttribute(attrib);
|
||||
}
|
||||
|
||||
function getAnchorListHTML(id, target) {
|
||||
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
||||
var nodes = inst.getBody().getElementsByTagName("a");
|
||||
|
||||
var html = "";
|
||||
|
||||
html += '<select id="' + id + '" name="' + id + '" class="mceAnchorList" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target + '.value=';
|
||||
html += 'this.options[this.selectedIndex].value;">';
|
||||
html += '<option value="">---</option>';
|
||||
|
||||
for (var i=0; i<nodes.length; i++) {
|
||||
if ((name = tinyMCE.getAttrib(nodes[i], "name")) != "")
|
||||
html += '<option value="#' + name + '">' + name + '</option>';
|
||||
}
|
||||
|
||||
html += '</select>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
function insertAction() {
|
||||
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
|
||||
var elm = inst.getFocusElement();
|
||||
|
||||
elm = tinyMCE.getParentElement(elm, "a");
|
||||
|
||||
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
||||
|
||||
// Create new anchor elements
|
||||
if (elm == null) {
|
||||
if (tinyMCE.isSafari)
|
||||
tinyMCEPopup.execCommand("mceInsertContent", false, '<a href="#mce_temp_url#">' + inst.getSelectedHTML() + '</a>');
|
||||
else
|
||||
tinyMCEPopup.execCommand("createlink", false, "#mce_temp_url#");
|
||||
|
||||
var elementArray = tinyMCE.getElementsByAttributeValue(inst.getBody(), "a", "href", "#mce_temp_url#");
|
||||
for (var i=0; i<elementArray.length; i++) {
|
||||
var elm = elementArray[i];
|
||||
|
||||
// Move cursor behind the new anchor
|
||||
if (tinyMCE.isGecko) {
|
||||
var sp = inst.getDoc().createTextNode(" ");
|
||||
|
||||
if (elm.nextSibling)
|
||||
elm.parentNode.insertBefore(sp, elm.nextSibling);
|
||||
else
|
||||
elm.parentNode.appendChild(sp);
|
||||
|
||||
// Set range after link
|
||||
var rng = inst.getDoc().createRange();
|
||||
rng.setStartAfter(elm);
|
||||
rng.setEndAfter(elm);
|
||||
|
||||
// Update selection
|
||||
var sel = inst.getSel();
|
||||
sel.removeAllRanges();
|
||||
sel.addRange(rng);
|
||||
}
|
||||
|
||||
setAllAttribs(elm);
|
||||
}
|
||||
} else
|
||||
setAllAttribs(elm);
|
||||
|
||||
tinyMCE._setEventsEnabled(inst.getBody(), false);
|
||||
tinyMCEPopup.execCommand("mceEndUndoLevel");
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
|
||||
function setAllAttribs(elm) {
|
||||
var formObj = document.forms[0];
|
||||
var href = formObj.href.value;
|
||||
var target = getSelectValue(formObj, 'targetlist');
|
||||
|
||||
// Make anchors absolute
|
||||
if (href.charAt(0) == '#')
|
||||
href = tinyMCE.settings['document_base_url'] + href;
|
||||
|
||||
setAttrib(elm, 'href', convertURL(href, elm));
|
||||
setAttrib(elm, 'mce_href', href);
|
||||
setAttrib(elm, 'title');
|
||||
setAttrib(elm, 'target', target == '_self' ? '' : target);
|
||||
setAttrib(elm, 'id');
|
||||
setAttrib(elm, 'style');
|
||||
setAttrib(elm, 'class', getSelectValue(formObj, 'classlist'));
|
||||
setAttrib(elm, 'rel');
|
||||
setAttrib(elm, 'rev');
|
||||
setAttrib(elm, 'charset');
|
||||
setAttrib(elm, 'hreflang');
|
||||
setAttrib(elm, 'dir');
|
||||
setAttrib(elm, 'lang');
|
||||
setAttrib(elm, 'tabindex');
|
||||
setAttrib(elm, 'accesskey');
|
||||
setAttrib(elm, 'type');
|
||||
setAttrib(elm, 'onfocus');
|
||||
setAttrib(elm, 'onblur');
|
||||
setAttrib(elm, 'onclick');
|
||||
setAttrib(elm, 'ondblclick');
|
||||
setAttrib(elm, 'onmousedown');
|
||||
setAttrib(elm, 'onmouseup');
|
||||
setAttrib(elm, 'onmouseover');
|
||||
setAttrib(elm, 'onmousemove');
|
||||
setAttrib(elm, 'onmouseout');
|
||||
setAttrib(elm, 'onkeypress');
|
||||
setAttrib(elm, 'onkeydown');
|
||||
setAttrib(elm, 'onkeyup');
|
||||
|
||||
// Refresh in old MSIE
|
||||
if (tinyMCE.isMSIE5)
|
||||
elm.outerHTML = elm.outerHTML;
|
||||
}
|
||||
|
||||
function getSelectValue(form_obj, field_name) {
|
||||
var elm = form_obj.elements[field_name];
|
||||
|
||||
if (elm == null || elm.options == null)
|
||||
return "";
|
||||
|
||||
return elm.options[elm.selectedIndex].value;
|
||||
}
|
||||
|
||||
function getLinkListHTML(elm_id, target_form_element, onchange_func) {
|
||||
if (typeof(tinyMCELinkList) == "undefined" || tinyMCELinkList.length == 0)
|
||||
return "";
|
||||
|
||||
var html = "";
|
||||
|
||||
html += '<select id="' + elm_id + '" name="' + elm_id + '"';
|
||||
html += ' class="mceLinkList" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
|
||||
html += 'this.options[this.selectedIndex].value;';
|
||||
|
||||
if (typeof(onchange_func) != "undefined")
|
||||
html += onchange_func + '(\'' + target_form_element + '\',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);';
|
||||
|
||||
html += '"><option value="">---</option>';
|
||||
|
||||
for (var i=0; i<tinyMCELinkList.length; i++)
|
||||
html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
|
||||
|
||||
html += '</select>';
|
||||
|
||||
return html;
|
||||
|
||||
// tinyMCE.debug('-- image list start --', html, '-- image list end --');
|
||||
}
|
||||
|
||||
function getTargetListHTML(elm_id, target_form_element) {
|
||||
var targets = tinyMCE.getParam('theme_advanced_link_targets', '').split(';');
|
||||
var html = '';
|
||||
|
||||
html += '<select id="' + elm_id + '" name="' + elm_id + '" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
|
||||
html += 'this.options[this.selectedIndex].value;">';
|
||||
|
||||
html += '<option value="_self">' + tinyMCE.getLang('lang_advlink_target_same') + '</option>';
|
||||
html += '<option value="_blank">' + tinyMCE.getLang('lang_advlink_target_blank') + ' (_blank)</option>';
|
||||
html += '<option value="_parent">' + tinyMCE.getLang('lang_advlink_target_parent') + ' (_parent)</option>';
|
||||
html += '<option value="_top">' + tinyMCE.getLang('lang_advlink_target_top') + ' (_top)</option>';
|
||||
|
||||
for (var i=0; i<targets.length; i++) {
|
||||
var key, value;
|
||||
|
||||
if (targets[i] == "")
|
||||
continue;
|
||||
|
||||
key = targets[i].split('=')[0];
|
||||
value = targets[i].split('=')[1];
|
||||
|
||||
html += '<option value="' + key + '">' + value + ' (' + key + ')</option>';
|
||||
}
|
||||
|
||||
html += '</select>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
// While loading
|
||||
preinit();
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Czech lang variables
|
||||
* encoding: utf-8
|
||||
*
|
||||
* $Id: cs.js,v 1.4 2005/10/18 13:59:42 spocke Exp $
|
||||
*/
|
||||
|
||||
tinyMCE.addToLang('',{
|
||||
insert_link_target_same : 'Otevřít ve stejném okně/rámu',
|
||||
insert_link_target_parent : 'Otevřít v rodičovském okně/rámu',
|
||||
insert_link_target_top : 'Otevřít v nejvyšším rámu (přepíše všechny rámy)',
|
||||
insert_link_target_blank : 'Otevřít v novém okně',
|
||||
insert_link_target_named : 'Otevřít v okně',
|
||||
insert_link_popup : 'JS-Popup',
|
||||
insert_link_popup_url : 'Popup URL',
|
||||
insert_link_popup_name : 'Název okna',
|
||||
insert_link_popup_return : 'Vložit \'return false\'',
|
||||
insert_link_popup_scrollbars : 'Ukázat posuvníky',
|
||||
insert_link_popup_statusbar : 'Ukázat stavový řádek',
|
||||
insert_link_popup_toolbar : 'Ukázat ovládací lištu',
|
||||
insert_link_popup_menubar : 'Ukázat menu',
|
||||
insert_link_popup_location : 'Ukázat lištu umístění',
|
||||
insert_link_popup_resizable : 'Proměnná velikost okna',
|
||||
insert_link_popup_size : 'Velikost',
|
||||
insert_link_popup_position : 'Umístění (X/Y)',
|
||||
insert_link_popup_missingtarget : 'Vložte název cíle nebo vyberte jinou volbu.'
|
||||
});
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('advlink',{
|
||||
general_tab : 'Cyffredinol',
|
||||
popup_tab : 'Ffenest Naid',
|
||||
events_tab : 'Digwyddiadau',
|
||||
advanced_tab : 'Uwch',
|
||||
general_props : 'Priodoleddau cyffredinol',
|
||||
popup_props : 'Priodoleddau ffenest naid',
|
||||
event_props : 'Digwyddiadau',
|
||||
advanced_props : 'Priodoleddau uwch',
|
||||
popup_opts : 'Dewisiadau',
|
||||
anchor_names : 'Angorau',
|
||||
target_same : 'Agor yn y ffenest / ffrâm yma',
|
||||
target_parent : 'Agor yn rhiant y ffenest / ffrâm',
|
||||
target_top : 'Agor yn y ffrâm uchaf (disodli pob ffrâm)',
|
||||
target_blank : 'Agor mewn ffenest newydd',
|
||||
popup : 'Ffenest naid Javascript',
|
||||
popup_url : 'URL ffenest naid',
|
||||
popup_name : 'Enw ffenest',
|
||||
popup_return : 'Mewnosod \'return false\'',
|
||||
popup_scrollbars : 'Dangos bariau sgrolio',
|
||||
popup_statusbar : 'Dangos bar statws',
|
||||
popup_toolbar : 'Dangos bariau offer',
|
||||
popup_menubar : 'Dangos bar dewislen',
|
||||
popup_location : 'Dangos bar lleoliad',
|
||||
popup_resizable : 'Caniatáu newid maint y ffenest',
|
||||
popup_dependent : 'Dibynnol (Mozilla/Firefox yn unig)',
|
||||
popup_size : 'Maint',
|
||||
popup_position : 'Lleoliad (X/Y)',
|
||||
id : 'Id',
|
||||
style: 'Arddull',
|
||||
classes : 'Dosbarthiadau',
|
||||
target_name : 'Enw targed',
|
||||
langdir : 'Cyfeiriad iaith',
|
||||
target_langcode : 'Iaith y targed',
|
||||
langcode : 'Côd iaith',
|
||||
encoding : 'Amgodio testun y targed',
|
||||
mime : 'Math MIME y targed',
|
||||
rel : 'Perthynas tudalen i\'r targed',
|
||||
rev : 'Perthynas targed i\'r dudalen',
|
||||
tabindex : 'Tabindex',
|
||||
accesskey : 'Accesskey',
|
||||
ltr : 'Chwith i\'r dde',
|
||||
rtl : 'Dde i\'r chwith'
|
||||
});
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
// DK lang variables contributed by Jan Moelgaard
|
||||
|
||||
tinyMCE.addToLang('advlink',{
|
||||
general_tab : 'Generelt',
|
||||
popup_tab : 'Pop up',
|
||||
events_tab : 'Events',
|
||||
advanced_tab : 'Avanceret',
|
||||
general_props : 'Generelle egenskaber',
|
||||
popup_props : 'Popup egenskaber',
|
||||
event_props : 'Events',
|
||||
advanced_props : 'Advancerede egenskaber',
|
||||
popup_opts : 'Valgmuligheder',
|
||||
anchor_names : 'Bogmærker',
|
||||
target_same : 'Åbn i samme vindue / ramme',
|
||||
target_parent : 'Åbn i overordnet vindue / ramme',
|
||||
target_top : 'Åbn i topramme (erstatter alle rammer)',
|
||||
target_blank : 'Åbn i nyt vindue',
|
||||
popup : 'Javascript popup',
|
||||
popup_url : 'Popup adresse',
|
||||
popup_name : 'Winduets navn',
|
||||
popup_return : 'Indsæt \'return false\'',
|
||||
popup_scrollbars : 'Vis scrollbar',
|
||||
popup_statusbar : 'Vis statuslinje',
|
||||
popup_toolbar : 'Vis værktøjslinjer',
|
||||
popup_menubar : 'Vis menulinje',
|
||||
popup_location : 'Vis adresse',
|
||||
popup_resizable : 'Gør vinduet skalerbart',
|
||||
popup_dependent : 'Afhængigt (kun ved Mozilla/Firefox)',
|
||||
popup_size : 'Størrelse',
|
||||
popup_position : 'Placering (X/Y)',
|
||||
id : 'Id',
|
||||
style: 'Style',
|
||||
classes : 'Klasser',
|
||||
target_name : 'Target navn',
|
||||
langdir : 'Sprogretning',
|
||||
target_langcode : 'Target sprog',
|
||||
langcode : 'Sprogkode',
|
||||
encoding : 'Target karakterkode',
|
||||
mime : 'Target MIME type',
|
||||
rel : 'Relation mellem side og target',
|
||||
rev : 'Relation mellem target og side',
|
||||
tabindex : 'Tabindex',
|
||||
accesskey : 'Adgangsnøgle',
|
||||
ltr : 'Venstre til højre',
|
||||
rtl : 'Højre til venstre'
|
||||
});
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
// DE lang variables
|
||||
|
||||
tinyMCE.addToLang('advlink',{
|
||||
general_tab : 'Allgemein',
|
||||
popup_tab : 'Popup',
|
||||
events_tab : 'JS-Events',
|
||||
advanced_tab : 'Erweitert',
|
||||
general_props : 'Allgemeine Eigenschaften',
|
||||
popup_props : 'Popup-Eigenschaften',
|
||||
event_props : 'Javascript-Events',
|
||||
advanced_props : 'Erweiterte Eigenschaften',
|
||||
popup_opts : 'Optionen',
|
||||
anchor_names : 'Anker',
|
||||
target_same : '_self - In diesem Fenster/Frame öffnen',
|
||||
target_parent : '_parent - Im Eltern-Fenster/-Frame öffnen',
|
||||
target_top : '_top - Im Fenster öffnen (ersetzt alle Frames)',
|
||||
target_blank : '_blank - In neuem Fenster öffnen',
|
||||
popup : 'Javascript-Popup',
|
||||
popup_url : 'Popup-URL',
|
||||
popup_name : 'Popup-Name',
|
||||
popup_return : 'Mit \'return false\' einfügen',
|
||||
popup_scrollbars : 'Scrollleisten anzeigen',
|
||||
popup_statusbar : 'Statuszeilen anzeigen',
|
||||
popup_toolbar : 'Werkzeugleisten anzeigen',
|
||||
popup_menubar : 'Menüleiste anzeigen',
|
||||
popup_location : 'Adresszeile anzeigen',
|
||||
popup_resizable : 'Fenstergröße veränderbar',
|
||||
popup_dependent : 'Abhängiges Fenster (Nur Mozilla/Firefox)',
|
||||
popup_size : 'Größe',
|
||||
popup_position : 'Position (X/Y)',
|
||||
id : 'ID',
|
||||
style: 'CSS-Stil',
|
||||
classes : 'CSS-Klassen',
|
||||
target_name : 'Zielname',
|
||||
langdir : 'Sprachrichtung',
|
||||
target_langcode : 'Zielsprache',
|
||||
langcode : 'Sprach-Code',
|
||||
encoding : 'Zeichenkodierung',
|
||||
mime : 'MIME-Typ',
|
||||
rel : 'Verhältnis Seite zu Ziel',
|
||||
rev : 'Verhältnis Ziel zu Seite',
|
||||
tabindex : 'Tabulator-Index',
|
||||
accesskey : 'Tastaturkürzel',
|
||||
ltr : 'Von links nach rechts',
|
||||
rtl : 'Von rechts nach links',
|
||||
delta_width : 10
|
||||
});
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
// UK lang variables
|
||||
|
||||
tinyMCE.addToLang('advlink',{
|
||||
general_tab : 'General',
|
||||
popup_tab : 'Popup',
|
||||
events_tab : 'Events',
|
||||
advanced_tab : 'Advanced',
|
||||
general_props : 'General properties',
|
||||
popup_props : 'Popup properties',
|
||||
event_props : 'Events',
|
||||
advanced_props : 'Advanced properties',
|
||||
popup_opts : 'Options',
|
||||
anchor_names : 'Anchors',
|
||||
target_same : 'Open in this window / frame',
|
||||
target_parent : 'Open in parent window / frame',
|
||||
target_top : 'Open in top frame (replaces all frames)',
|
||||
target_blank : 'Open in new window',
|
||||
popup : 'Javascript popup',
|
||||
popup_url : 'Popup URL',
|
||||
popup_name : 'Window name',
|
||||
popup_return : 'Insert \'return false\'',
|
||||
popup_scrollbars : 'Show scrollbars',
|
||||
popup_statusbar : 'Show status bar',
|
||||
popup_toolbar : 'Show toolbars',
|
||||
popup_menubar : 'Show menu bar',
|
||||
popup_location : 'Show location bar',
|
||||
popup_resizable : 'Make window resizable',
|
||||
popup_dependent : 'Dependent (Mozilla/Firefox only)',
|
||||
popup_size : 'Size',
|
||||
popup_position : 'Position (X/Y)',
|
||||
id : 'Id',
|
||||
style: 'Style',
|
||||
classes : 'Classes',
|
||||
target_name : 'Target name',
|
||||
langdir : 'Language direction',
|
||||
target_langcode : 'Target language',
|
||||
langcode : 'Language code',
|
||||
encoding : 'Target character encoding',
|
||||
mime : 'Target MIME type',
|
||||
rel : 'Relationship page to target',
|
||||
rev : 'Relationship target to page',
|
||||
tabindex : 'Tabindex',
|
||||
accesskey : 'Accesskey',
|
||||
ltr : 'Left to right',
|
||||
rtl : 'Right to left'
|
||||
});
|
||||
Loaded 100 of 1198 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user