content block not working properly after 5.4.0 upgrade (incl. fix)
Permalink
hi.
the content block in my c5 installation didn't load the tinyMCE editor anymore after i applied the 5.4.0 upgrade. it just showed the HTML formatted text in a textarea where the richtext-editor used to be. i already found a solution to this, but i don't think it should be this way.
i replaced this line from the edit.php:
<textarea id="ccm-content-<?php echo $b->getBlockID()?>-<?php echo $a->getAreaID()?>" class="ccm-advanced-editor" name="content"><?php echo $controller->getContentEditMode()?></textarea>
with this (the 5.3.3) one:
<textarea id="ccm-content-<?php echo $a->getAreaID()?>" class="advancedEditor" name="content"><?php echo $controller->getContentEditMode()?></textarea>
and it works again. in the add.php i had to change the css class from "ccm-advanced-editor" to "advancedEditor".
i'm pretty sure this isn't a bug but rather some mistake i made along the way. i haven't made any changes to the core and there are no custom templates (or any other files) for the content block. i just can't figure it out. any idea why this is happening?
the content block in my c5 installation didn't load the tinyMCE editor anymore after i applied the 5.4.0 upgrade. it just showed the HTML formatted text in a textarea where the richtext-editor used to be. i already found a solution to this, but i don't think it should be this way.
i replaced this line from the edit.php:
<textarea id="ccm-content-<?php echo $b->getBlockID()?>-<?php echo $a->getAreaID()?>" class="ccm-advanced-editor" name="content"><?php echo $controller->getContentEditMode()?></textarea>
with this (the 5.3.3) one:
<textarea id="ccm-content-<?php echo $a->getAreaID()?>" class="advancedEditor" name="content"><?php echo $controller->getContentEditMode()?></textarea>
and it works again. in the add.php i had to change the css class from "ccm-advanced-editor" to "advancedEditor".
i'm pretty sure this isn't a bug but rather some mistake i made along the way. i haven't made any changes to the core and there are no custom templates (or any other files) for the content block. i just can't figure it out. any idea why this is happening?
Ah. Sorry about this. I'm guessing you're using a custom tinymce configuration string within the dashboard? You should keep ccm-advanced-editor in the template itself and go into the dashboard and change advancedEditor to ccm-advanced-editor in the custmo tinymce configuration box.
solved my problem. thank you!