У меня есть 2 редактора на моей странице.когда я нажимаю кнопку, я хочу, чтобы они отключились.
Если это возможно, я бы хотел, чтобы он стал обычной текстовой областью и рассматривал ее как обычный текст, а не как HTML.
Я видел другие вопросы по отключению, но не заставил их работать ..
Это мой код:
function create_text_editor()
{
$('#remarks1').tinymce(
{
script_url : 'resources/tinymce/jscripts/tiny_mce/tiny_mce.js',
theme : "advanced",
theme_advanced_buttons1 : "cut,copy,paste,|,bold,italic,underline,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull,|" ,
theme_advanced_buttons2 : "formatselect,fontselect,fontsizeselect,|,forecolor,backcolor,|",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
plugins : "paste" ,
oninit : on_editor_init });
$('#remarks2').tinymce(
{
script_url : 'resources/tinymce/jscripts/tiny_mce/tiny_mce.js',
theme : "advanced",
theme_advanced_buttons1 : "cut,copy,paste,|,bold,italic,underline,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull,|" ,
theme_advanced_buttons2 : "formatselect,fontselect,fontsizeselect,|,forecolor,backcolor,|",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
plugins : "paste" ,
oninit : on_editor_init });
}
'on_editor_init' - emtpy.
Любая помощь будет оценена,
Заранее благодарен.