Hi,
I have a somewhat strange situation in Chronoforms. At first, I wasn't able to add TinyMCE to a textarea. Eventually, I managed to get it right. Then, I created a form with one textarea with TinyMCE with the following code:
<?php
$editor =JFactory::getEditor();
echo $editor->display( 'RoadMap', $form->data['RoadMap'], '400', '400', '20', '20', true);
?>
Then, I added multiple textareas to the form in the form desginer, user containers (adjustable column) to place them in a certain order. All those textareas also need TinyMce. So I used the following code in the setup tab of Chronoforms:
jQuery(document).ready(function(jQ) {
tinymce.init({
mode : "exact",
elements : "Medewerkers, Partners, Structuur, Rol, BHAG, Waardepropositie, Klantsegmenten, Marketing, Kanalen, Strategie, Product, Dienst, Verdienmodel",
width : "100",
template : "modern",
menu : "false",
plugins : "preview textcolor link image insertdatetime media hr charmap",
toolbar : "bold italic | forecolor backcolor | bullist numlist | preview | charmap",
insert_button_items: "image link",
content_style: ".mce-content-body {font-size:12px;font-family:Arial,sans-serif;}",
resize: "false"
});
});
All the textarea's a equiped with TinyMCE. Apparently the JavaScript takes over the things in the php schipt. Because without the PHP-script, the text area's are not equiped with the TinyMCE editor.
Now comes the problem. I have another form in which all the textareas are placed in the Chronoforms designer using containers (adjustable column). So I can't use the first php-script above, since I can't add a textarea without using the designer, because the textareas are placed in a specific order all over the screen. I have to use the javascript to equipe all the textareas with TinyMCE. But then, the TinyMCE editor is suddenly not added to the textareas anymore. Some other editor is (I don't know which one), but not TinyMCE. I need TinyMCE... can somebody help me with my challenge?
Thanks!
I have a somewhat strange situation in Chronoforms. At first, I wasn't able to add TinyMCE to a textarea. Eventually, I managed to get it right. Then, I created a form with one textarea with TinyMCE with the following code:
<?php
$editor =JFactory::getEditor();
echo $editor->display( 'RoadMap', $form->data['RoadMap'], '400', '400', '20', '20', true);
?>
Then, I added multiple textareas to the form in the form desginer, user containers (adjustable column) to place them in a certain order. All those textareas also need TinyMce. So I used the following code in the setup tab of Chronoforms:
jQuery(document).ready(function(jQ) {
tinymce.init({
mode : "exact",
elements : "Medewerkers, Partners, Structuur, Rol, BHAG, Waardepropositie, Klantsegmenten, Marketing, Kanalen, Strategie, Product, Dienst, Verdienmodel",
width : "100",
template : "modern",
menu : "false",
plugins : "preview textcolor link image insertdatetime media hr charmap",
toolbar : "bold italic | forecolor backcolor | bullist numlist | preview | charmap",
insert_button_items: "image link",
content_style: ".mce-content-body {font-size:12px;font-family:Arial,sans-serif;}",
resize: "false"
});
});
All the textarea's a equiped with TinyMCE. Apparently the JavaScript takes over the things in the php schipt. Because without the PHP-script, the text area's are not equiped with the TinyMCE editor.
Now comes the problem. I have another form in which all the textareas are placed in the Chronoforms designer using containers (adjustable column). So I can't use the first php-script above, since I can't add a textarea without using the designer, because the textareas are placed in a specific order all over the screen. I have to use the javascript to equipe all the textareas with TinyMCE. But then, the TinyMCE editor is suddenly not added to the textareas anymore. Some other editor is (I don't know which one), but not TinyMCE. I need TinyMCE... can somebody help me with my challenge?
Thanks!
This topic is locked and no more replies can be posted.