Forum

Thread tagged as: Problem, Addons, CKEditor

CKEditor not loading on block after block containing repeater

I have an editable region with a mix of blocks. One of the blocks is a simple HTMl text input block using CKeditor:

<perch:template path="content/blocks/text.html" />

Points to:

<perch:content type="textarea" id="text" label="Text" html="true" editor="ckeditor" />

This has been working fine until I introduced a more complicated block containing a repeater:

<perch:block type="textGrid" label="Text Grid">
    <div class="textGrid section">
        <perch:repeater id="blocks" label="Blocks">
            <div class="textBlock section">
                <div class="text section">
                    <perch:template path="content/blocks/text.html" />
                </div><!--/.text-->
                <perch:if exists="image">
                    <div class="image section">
                        <perch:template path="content/blocks/image.html" />
                    </div><!--/.image-->
                </perch:if>
            </div><!--/.textBlock-->
        </perch:repeater>
    </div><!--/.textGrid-->
  </perch:block>

The CKEditor loads fine for all text instances before the 'textGrid' block, and the CKEditor loads fine in the text input fields within the repeaters within the 'textGrid' block.

However CKEditor fails to load on any text inputs added after the 'textGrid' block.

This isn't a chronological issue as I can create text inputs before the 'textGrid' block an the editor loads, but anything created at the end of the list of blocks doesn't load the CKEditor.

Any ideas?

Tony Astley

Tony Astley 0 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Please post your Diagnostics Report.

Perch: 3.0.8
Production mode: Production (100)
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8)
DB driver: PDO
DB tables: perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_content_index (312), perch3_content_items (94), perch3_content_regions (35), perch3_menu_items (8), perch3_navigation (1), perch3_navigation_pages (13), perch3_page_templates (5), perch3_pages (9), perch3_resource_log (416), perch3_resource_tags (0), perch3_resources (165), perch3_resources_to_tags (0), perch3_settings (11), perch3_user_passwords (0), perch3_user_privileges (27), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = [ 
    ];
Editor plug-ins: ckeditor
H1: 6fd7c6922d9b07ef0d93c4533991553a
L1: 0f1ff3ab80b4314a6719a8365bfbee7f
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
installedAt: 3.0.8
update_3.0.8: done
latest_version:
on_sale_version: 3.0.9
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: electrix
PERCH_DB_PREFIX: perch3_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: tony@sixtillnine.co.uk
PERCH_EMAIL_FROM_NAME: Tony Astley
PERCH_LOGINPATH: /perch
PERCH_PATH: /Volumes/Jobs/Websites/Electrix_Services/site-folder/perch
PERCH_CORE: /Volumes/Jobs/Websites/Electrix_Services/site-folder/perch/core
PERCH_RESFILEPATH: /Volumes/Jobs/Websites/Electrix_Services/site-folder/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_ASSET_VERSION: 5163d57ff611b3cf853b
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Volumes/Jobs/Websites/Electrix_Services/site-folder/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 7.1.1
Zend: 3.1.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $
MySQL server: 5.6.35
Free disk space: 91.05 GB
Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, session, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysqli, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, gettext, mcrypt, pgsql, pdo_pgsql, igbinary, memcached
GD: Yes
ImageMagick: No
PHP max upload size: 32M
PHP max form post size: 32M
PHP memory limit: 128M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_HOST: local.electrixservices.dev:8888
HTTP_COOKIE: cmsa=1; PHPSESSID=1e7bf0257657074fa938ba661aec9af8
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.2.5 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.5
HTTP_REFERER: https://local.electrixservices.dev:8888/perch/core/settings/diagnostics/
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_ACCEPT_ENCODING: gzip, deflate
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache
SERVER_NAME: local.electrixservices.dev
SERVER_ADDR: ::1
SERVER_PORT: 8888
REMOTE_ADDR: ::1
DOCUMENT_ROOT: /Volumes/Jobs/Websites/Electrix_Services/site-folder
SERVER_ADMIN: you@example.com
SCRIPT_FILENAME: /Volumes/Jobs/Websites/Electrix_Services/site-folder/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 61138
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1503923986.23
REQUEST_TIME: 1503923986
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

This is something we're looking into.

Thanks Drew.