Multiple Text editors on dashboard page
Permalink
Hello,
I have created a single page form in the dashboard which works with out issue. There is currently 1 html text editor that allows the user to add a large description.
This works fine and saves the input text against 'property_description'.
However, I want to add a second text editor for different data, but as soon as i create a new text editor in the form it doesnt saving either the first editor or the second.
To do this i have replicated the code above but changed the text area value....
Is there a known conflict for more than 1 editor..? Any help would be appreciated. Or is there another way i can include 2 separate html text areas..?
Thanks
I have created a single page form in the dashboard which works with out issue. There is currently 1 html text editor that allows the user to add a large description.
<!-- View.php code--> <strong>Full Description</strong><br /><br /> <div class="clearfix"> <?php Loader::Element('editor_init'); ?> <?php Loader::Element('editor_config'); ?> <?php Loader::Element('editor_controls',array('mode'=>'full'));?> <?php echo $form->textarea('property_description', $property_description, array('style' => 'width: 100%; font-family: sans-serif;', 'class' => 'ccm-advanced-editor'))?> </div> <!-- Controller Code--> $bt = BlockType::getByHandle('content'); $data = array('content' => $this->post('property_description')); $b = $p->addBlock($bt, 'Main', $data);
This works fine and saves the input text against 'property_description'.
However, I want to add a second text editor for different data, but as soon as i create a new text editor in the form it doesnt saving either the first editor or the second.
To do this i have replicated the code above but changed the text area value....
<!-- View.php code--> <strong>Full Description</strong><br /><br /> <div class="clearfix"> <?php Loader::Element('editor_init'); ?> <?php Loader::Element('editor_config'); ?> <?php Loader::Element('editor_controls',array('mode'=>'full'));?> <?php echo $form->textarea('property_description_two', $property_description, array('style' => 'width: 100%; font-family: sans-serif;', 'class' => 'ccm-advanced-editor'))?> </div> <!-- Controller Code--> $bt = BlockType::getByHandle('content'); $data = array('content' => $this->post('property_description_two')); $b = $p->addBlock($bt, 'Main', $data);
Is there a known conflict for more than 1 editor..? Any help would be appreciated. Or is there another way i can include 2 separate html text areas..?
Thanks