How do I do two full rich text editors with toolbars in 5.5.1?
Permalink
In 5.4.2.2 you could do something like this and have two text editors with full toolbars next to eachother working:
I'm trying the same thing in 5.5.1 and the toolbars for adding an image or a link to a page or whatever don't apply to the text areas they should be applying to. Is there any way to get more than one text area displaying in the same form with rich text controls?
I've also tried doing this using a text editor that is set up using a page attribute and it's echo $akt->render('form', $tvalue, true); method to display the rich text editor. The same problem with the browse actions not applying to the right text area applies there too.
Any insight is appreciated, I feel like there should be some way to get this working because it was working before, I hopefully am just missing something basic?
<?php Loader::element('editor_init'); $editor_mode = Config::get('CONTENTS_TXT_EDITOR_MODE'); Loader::element('editor_config', array('editor_mode' => $editor_mode, 'editor_selector' => 'ccm-advanced-editor-short-story')); ?> <div class="ccm-input-wrap"> <label for="short_story"><?php echo t("Short Story"); ?></label> <?php Loader::element('editor_controls', array('mode'=>'full'));?> <?php echo $fh->textarea('short_story', $row['short_story'], array('class' => 'ccm-advanced-editor-short-story', 'style' => 'width: 590px')); ?> </div> <div class="ccm-input-wrap"> <label for="long_story"><?php echo t("Long Story"); ?></label> <?php Loader::element('editor_config', array('editor_mode' => $editor_mode, 'editor_selector' => 'ccm-advanced-editor-long-story')); Loader::element('editor_controls', array('mode'=>'full')); ?>
Viewing 15 lines of 17 lines. View entire code block.
I'm trying the same thing in 5.5.1 and the toolbars for adding an image or a link to a page or whatever don't apply to the text areas they should be applying to. Is there any way to get more than one text area displaying in the same form with rich text controls?
I've also tried doing this using a text editor that is set up using a page attribute and it's echo $akt->render('form', $tvalue, true); method to display the rich text editor. The same problem with the browse actions not applying to the right text area applies there too.
Any insight is appreciated, I feel like there should be some way to get this working because it was working before, I hopefully am just missing something basic?
It's actually just the 5.5 up until 5.5.2 that it didn't work in - you _could_ do it in versions prior to 5.5 to some extent. For the add on that needed this we now have I think 4 different versions for different capabilities of the CMS. A bit unweildy to maintain...
Up until Concrete5.5.2, you could not have more than 1 rich text editor on the same page and have them work properly. However, in Concrete5.5.2 they finally fixed the problems and now it's rather simple to do with very little code:
http://c5blog.jordanlev.com/blog/2012/04/new-in-concrete-5-dot-5-2-...