add files
This commit is contained in:
121
vendor/akdelf/akdmin/themes/office/pub/js/tinyinit.js
vendored
Normal file
121
vendor/akdelf/akdmin/themes/office/pub/js/tinyinit.js
vendored
Normal file
@@ -0,0 +1,121 @@
|
||||
/*bTextareaWasTinyfied = false;*/
|
||||
|
||||
/*tinyMCE.init({
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
language: "ru_CP1251",
|
||||
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,ajaxfilemanager",
|
||||
theme_advanced_buttons1_add_before : "save,newdocument,separator",
|
||||
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
|
||||
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
|
||||
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
|
||||
theme_advanced_buttons3_add_before : "tablecontrols,separator",
|
||||
theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
content_css : "example_word.css",
|
||||
plugi2n_insertdate_dateFormat : "%Y-%m-%d",
|
||||
plugi2n_insertdate_timeFormat : "%H:%M:%S",
|
||||
external_link_list_url : "example_link_list.js",
|
||||
external_image_list_url : "example_image_list.js",
|
||||
media_external_list_url : "example_media_list.js",
|
||||
file_browser_callback : "ajaxfilemanager",
|
||||
//file_browser_callback : “mcFileManager.filebrowserCallBack”,
|
||||
paste_use_dialog : false,
|
||||
theme_advanced_resizing : true,
|
||||
theme_advanced_resize_horizontal : false,
|
||||
theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
|
||||
paste_auto_cleanup_on_paste : true,
|
||||
paste_convert_headers_to_strong : false,
|
||||
paste_strip_class_attributes : "all",
|
||||
paste_remove_spans : false,
|
||||
paste_remove_styles : false
|
||||
});*/
|
||||
|
||||
|
||||
|
||||
function tinysetup() {
|
||||
|
||||
tinyMCE.init({
|
||||
// General options
|
||||
mode : "textareas",
|
||||
theme : "advanced",
|
||||
skin : "o2k7",
|
||||
language : 'ru',
|
||||
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave,spellchecker",
|
||||
editor_selector : "mceSimple",
|
||||
// Theme options
|
||||
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
|
||||
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
|
||||
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen,spellchecker",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
theme_advanced_resizing : true,
|
||||
valid_elements : '*[*]',
|
||||
|
||||
// Example word content CSS (should be your site CSS) this one removes paragraph margins
|
||||
//content_css : "css/word.css",
|
||||
content_css : "/mycontent.css",
|
||||
|
||||
// Drop lists for link/image/media/template dialogs
|
||||
template_external_list_url : "lists/template_list.js",
|
||||
external_link_list_url : "lists/link_list.js",
|
||||
external_image_list_url : "lists/image_list.js",
|
||||
media_external_list_url : "lists/media_list.js",
|
||||
|
||||
// Replace values for the template plugin
|
||||
template_replace_values : {
|
||||
username : "Some User",
|
||||
staffid : "991234"
|
||||
},
|
||||
// Spellchecker
|
||||
spellchecker_languages : "+Russian=ru,English=en",
|
||||
spellchecker_rpc_url : "http://speller.yandex.net/services/tinyspell",
|
||||
spellchecker_word_separator_chars : '\\s!"#$%&()*+,./:;<=>?@[\]^_{|}\xa7\xa9\xab\xae\xb1\xb6\xb7\xb8\xbb\xbc\xbd\xbe\u00bf\xd7\xf7\xa4\u201d\u201c'
|
||||
});
|
||||
|
||||
/*AjexFileManager.init({
|
||||
returnTo: 'tinymce',
|
||||
skin: 'light'
|
||||
});*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*function ajaxfilemanager(field_name, url, type, win) {
|
||||
var ajaxfilemanagerurl = "../../../tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php";
|
||||
switch (type) {
|
||||
case "image":
|
||||
ajaxfilemanagerurl += "?type=img";
|
||||
break;
|
||||
case "media":
|
||||
ajaxfilemanagerurl += "?type=media";
|
||||
break;
|
||||
case "flash": //for older versions of tinymce
|
||||
ajaxfilemanagerurl += "?type=media";
|
||||
break;
|
||||
case "file":
|
||||
ajaxfilemanagerurl += "?type=files";
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
var fileBrowserWindow = new Array();
|
||||
fileBrowserWindow["file"] = ajaxfilemanagerurl;
|
||||
fileBrowserWindow["title"] = "Ajax File Manager";
|
||||
fileBrowserWindow["width"] = "782";
|
||||
fileBrowserWindow["height"] = "440";
|
||||
fileBrowserWindow["close_previous"] = "no";
|
||||
tinyMCE.openWindow(fileBrowserWindow, {
|
||||
window : win,
|
||||
input : field_name,
|
||||
resizable : "yes",
|
||||
inline : "yes",
|
||||
editor_id : tinyMCE.getWindowArg("editor_id")
|
||||
});
|
||||
|
||||
return false;
|
||||
}*/
|
||||
Reference in New Issue
Block a user