Initial Commit of AgileBill Open Source
This commit is contained in:
7
includes/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js
vendored
Normal file
7
includes/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/* Import plugin specific language pack */
|
||||
function TinyMCE_zoom_getControlHTML(control_name){if(!tinyMCE.isMSIE||tinyMCE.isMSIE5_0)return "";switch(control_name){case "zoom":return '<select id="{$editor_id}_formatSelect" name="{$editor_id}_zoomSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceZoom\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\
|
||||
<option value="100%">+ 100%</option>\
|
||||
<option value="150%">+ 150%</option>\
|
||||
<option value="200%">+ 200%</option>\
|
||||
<option value="250%">+ 250%</option>\
|
||||
</select>';}return "";}function TinyMCE_zoom_execCommand(editor_id,element,command,user_interface,value){switch(command){case "mceZoom":tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom=value;tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom=value;return true;}return false;}
|
38
includes/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin_src.js
vendored
Normal file
38
includes/tinymce/jscripts/tiny_mce/plugins/zoom/editor_plugin_src.js
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/* Import plugin specific language pack */
|
||||
//tinyMCE.importPluginLanguagePack('zoom', 'en,sv,pt,fr_ca,fr,de');
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the zoom control.
|
||||
*/
|
||||
function TinyMCE_zoom_getControlHTML(control_name) {
|
||||
if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0)
|
||||
return "";
|
||||
|
||||
switch (control_name) {
|
||||
case "zoom":
|
||||
return '<select id="{$editor_id}_formatSelect" name="{$editor_id}_zoomSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceZoom\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\
|
||||
<option value="100%">+ 100%</option>\
|
||||
<option value="150%">+ 150%</option>\
|
||||
<option value="200%">+ 200%</option>\
|
||||
<option value="250%">+ 250%</option>\
|
||||
</select>';
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the mceZoom command.
|
||||
*/
|
||||
function TinyMCE_zoom_execCommand(editor_id, element, command, user_interface, value) {
|
||||
// Handle commands
|
||||
switch (command) {
|
||||
case "mceZoom":
|
||||
tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value;
|
||||
tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
8
includes/tinymce/jscripts/tiny_mce/plugins/zoom/langs/fa.js
vendored
Normal file
8
includes/tinymce/jscripts/tiny_mce/plugins/zoom/langs/fa.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// IR lang variables
|
||||
// Persian (Farsi) language pack (for IRAN)
|
||||
// By: Morteza Zafari
|
||||
// Lost@LostLord.com
|
||||
// http://www.LostLord.com
|
||||
|
||||
tinyMCELang['lang_dir'] = 'rtl';
|
||||
tinyMCELang['lang_zoom_prefix'] = 'بزرگنمایی';
|
3
includes/tinymce/jscripts/tiny_mce/plugins/zoom/langs/fr_ca.js
vendored
Normal file
3
includes/tinymce/jscripts/tiny_mce/plugins/zoom/langs/fr_ca.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// CA_FR lang variables
|
||||
|
||||
tinyMCELang['lang_zoom_prefix'] = 'Zoom';
|
22
includes/tinymce/jscripts/tiny_mce/plugins/zoom/readme.txt
vendored
Normal file
22
includes/tinymce/jscripts/tiny_mce/plugins/zoom/readme.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Zoom plugin for TinyMCE
|
||||
--------------------------
|
||||
|
||||
About:
|
||||
Adds a zoom drop list in MSIE5.5+, this plugin was mostly created to
|
||||
show how to add custom droplists as plugins.
|
||||
|
||||
Installation instructions:
|
||||
* Copy the zoom directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).
|
||||
* Add plugin to TinyMCE plugin option list example: plugins : "zoom".
|
||||
* Add the preview button name to button list, example: theme_advanced_buttons3_add : "zoom".
|
||||
|
||||
Initialization example:
|
||||
tinyMCE.init({
|
||||
theme : "advanced",
|
||||
mode : "textareas",
|
||||
plugins : "preview",
|
||||
theme_advanced_buttons3_add : "zoom"
|
||||
});
|
||||
|
||||
Requirement:
|
||||
This plugin requires MSIE on Mozilla the button will not be visible.
|
Reference in New Issue
Block a user