We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
CKEditor fields within blocks not displaying editor until saved
I've built a new site in Perch 3 with the latest CKEditor add-on. I've a region with a selection of blocks that all make use of CKEditor. If, when editing the content, I add a new block the text area that should have the CKEditor is just an empty text area when the block is first displayed. When I save the page it then displays the editor. I compared this to the now included Redactor plug-in which works perfectly (editor appears when a new block is created). Unfortunately, I need to customise the editor down to the bare minimum (no images or file uploads and specific formatting) so have stuck with CKEditor as I'm more familiar with it. Not sure if this is my error or a bug.
An example block template –
<perch:block type="block_1_col_text" label="One-column text"> <section class="block_1_column"> <h2><perch:content id="title" label="Title" type="text" required="true" /></h2> <perch:content id="content" type="textarea" label="Content" html="true" editor="ckeditor" /> </section> </perch:block>
Perch: 3.0, PHP: 7.0.17, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO Server OS: Linux, fpm-fcgi Installed apps: content (3.0), assets (3.0), categories (3.0), perch_blog (5.5), perch_forms (1.9) App runtimes: <?php $apps_list = array( 'perch_blog', 'perch_forms', ); PERCH_LOGINPATH: /manage PERCH_PATH: /var/www/vhosts/gen2.co.uk/httpdocs/manage PERCH_CORE: /var/www/vhosts/gen2.co.uk/httpdocs/manage/core PERCH_RESFILEPATH: /var/www/vhosts/gen2.co.uk/httpdocs/manage/resources Image manipulation: GD Imagick PHP limits: Max upload 10M, Max POST 16M, Memory: 128M, Total max file upload: 10M F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7 Resource folder writeable: Yes SCRIPT_NAME: /manage/core/settings/diagnostics/index.php REQUEST_URI: /manage/core/settings/diagnostics/ DOCUMENT_ROOT: /var/www/vhosts/gen2.co.uk/httpdocs HTTP_HOST: www.gen2.co.uk
Want to reply to this thread?Login with Perch