Closed GoogleCodeExporter closed 8 years ago
You should be able to add "preventTinyMCEInitLoad" => 1 as you describe above
and then add your own tinyMCE.init() section separate from class.form.php. Is
this what you have tried previously?
Original comment by ajporterfield@gmail.com
on 13 Jul 2010 at 1:45
yes, that was my idea also.
But i could not get the tinymce to load.
Original comment by sven.lar...@gmail.com
on 13 Jul 2010 at 1:51
Can you post your code, or provide a link for my to see your webpage?
Original comment by ajporterfield@gmail.com
on 13 Jul 2010 at 2:12
I tried it on the web-editors.php file.
I added the following.
<head>
...
<script type="text/javascript">
tinyMCE.init({
mode: "textareas",
theme: "advanced",
plugins: "safari,table,paste,inlinepopups,preview",
dialog_type: "modal",
theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,|,forecolor,backcolor",
theme_advanced_buttons2: "formatselect,fontselect,fontsizeselect,|,pastetext,pasteword,|,link,image",
theme_advanced_buttons3: "tablecontrols,|,code,preview,|,undo,redo",
theme_advanced_toolbar_location: "top",
editor_selector: "tiny_mce",
forced_root_block: false,
force_br_newlines: true,
force_p_newlines: false
});
tinyMCE.init({
mode: "textareas",
theme: "simple",
editor_selector: "tiny_mce_simple",
forced_root_block: false,
force_br_newlines: true,
force_p_newlines: false
});
</script>
</head>
...
$form->setAttributes(array(...,"preventTinyMCEInitLoad" => 1));
Original comment by sven.lar...@gmail.com
on 13 Jul 2010 at 2:45
Your current code snippet is in the <head> section, which is chronologically
before the textareas are available. Move this javascript section to just
before your closing <body> tag, or at least after the form->render() function
and see if that remedies your problem.
Original comment by ajporterfield@gmail.com
on 13 Jul 2010 at 5:32
Ok..., I thought I already tried that combination.
Seems like I was doing something wrong.
Thanks for the solution.
Original comment by sven.lar...@gmail.com
on 13 Jul 2010 at 6:27
Original comment by ajporterfield@gmail.com
on 14 Jul 2010 at 9:01
Original issue reported on code.google.com by
sven.lar...@gmail.com
on 12 Jul 2010 at 3:22