Answer the question
In order to leave comments, you need to log in
Inserting text into tiny_mce without properties, how to do?
Hello.
If you paste text from Word or Excel or copy it from the site and paste it into the bbcode form from tiny_mce, then it inserts text with styles, how to remove it so that the text is inserted without styles.
Also tell me how to make the font bigger? in the form, but when I write it is like 11px. in the form itself, by default, the value is small < I would like to do it like on the site 14px.
I have a settings file:
settings.js
in the file there is this:
tinyMCE.init({
mode : "exact",
elements : "ajaxfilemanager1, ajaxfilemanager2, ajaxfilemanager3, ajaxfilemanager4, ajaxfilemanager5, ajaxfilemanager6, ajaxfilemanager7, ajaxfilemanager8, ajaxfilemanager9, ajaxfilemanager10, ajaxfilemanager11, ajaxfilemanager12, ajaxfilemanager13, ajaxfilemanager14, ajaxfilemanager15",
theme : "advanced",
plugins : "advimage,advlink,media,contextmenu,table,fullscreen",
theme_advanced_buttons1_add_before : "newdocument,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "tablecontrols,separator,forecolor,backcolor,liststyle",
theme_advanced_buttons2_add_before: "cut,copy,separator,",
theme_advanced_buttons3_add_before : "",
theme_advanced_buttons3_add : "media,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
extended_valid_elements : "hr[class|width|size|noshade]",
file_browser_callback : "ajaxfilemanager",
paste_use_dialog : false,
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : true,
apply_source_formatting : true,
force_br_newlines : true,
relative_urls : false,
force_p_newlines : true,
forced_root_block : false
});
function ajaxfilemanager(field_name, url, type, win) {
var ajaxfilemanagerurl = "../../../../jscripts/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php";
var view = 'detail';
switch (type) {
case "image":
view = 'thumbnail';
break;
case "media":
break;
case "flash":
break;
case "file":
break;
default:
return false;
}
tinyMCE.activeEditor.windowManager.open({
url: "../../../../jscripts/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php?view=" + view,
width: 820,
height: 640,
inline : "yes",
close_previous : "no"
},{
window : win,
input : field_name
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question