Styles do not appear in CKEditor DIV Container Manager

Permalink 0 0 Browser Info Environment
The included DIV Container Manager does not display the concrete5 styles
It should show the styles with div tag.

Solution:

Change
editor.fire('stylesSet', { styles: additionalStyles });

in concrete5styles/plugin.js
to
editor.getStylesSet(function(stylesDefinitions) {
         if(!stylesDefinitions.length)
            Array.prototype.push.apply(stylesDefinitions, additionalStyles);
      });


so that not only the event listeners get notified, but the styles are actually added.


Status: New

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.5
Version Installed - 8.4.5
Database Version - 20180717000000

# concrete5 Packages
None

# concrete5 Overrides
themes/corona/thumbnail.png, themes/corona/description.txt, themes/corona/default.php, themes/corona/elements/footer.php, themes/corona/elements/footer_bottom.php, themes/corona/elements/header.php, themes/corona/elements/header_top.php, themes/corona/elements, themes/corona/videos/Fotolia_82434000_V_S-2.mp4, themes/corona/videos, themes/corona/css/corona.css, themes/corona/css/styles.xml, themes/corona/css/main.less, themes/corona/css/build/header.less, themes/corona/css/build/mobile/navigation.less, themes/corona/css/build/mobile, themes/corona/css/build/breadcrumb.less, themes/corona/css/build/buttons.less, themes/corona/css/build/captcha.less, themes/corona/css/build/content.less, themes/corona/css/build/errors.less, themes/corona/css/build/footer.less, themes/corona/css/build/miscellaneous-styles.less, themes/corona/css/build/mixins.less, themes/corona/css/build/pagination.less, themes/corona/css/build/reset.less, themes/corona/css/build/search.less, themes/corona/css/build/body.less, themes/corona/css/build/add-ons/calendar.less, themes/corona/css/build/add-ons, themes/corona/css/build/blocks/date-navigation.less, themes/corona/css/build/blocks/feature-template-hover-description.less, themes/corona/css/build/blocks/faq.less, themes/corona/css/build/blocks/feature.less, themes/corona/css/build/blocks/image-slider.less, themes/corona/css/build/blocks/image.less, themes/corona/css/build/blocks/next-previous.less, themes/corona/css/build/blocks/page-attribute-display.less, themes/corona/css/build/blocks/page-list-option-buttons.less, themes/corona/css/build/blocks/page-list-template-thumbnail-grid.less, themes/corona/css/build/blocks/page-list.less, themes/corona/css/build/blocks/page-title-option-byline.less, themes/corona/css/build/blocks/page-title.less, themes/corona/css/build/blocks/tags.less, themes/corona/css/build/blocks/testimonial.less, themes/corona/css/build/blocks/topic-list.less, themes/corona/css/build/blocks, themes/corona/css/build/bootstrap-3.2.0/badges.less, themes/corona/css/build/bootstrap-3.2.0/alerts.less, themes/corona/css/build/bootstrap-3.2.0/bootstrap.less, themes/corona/css/build/bootstrap-3.2.0/breadcrumbs.less, themes/corona/css/build/bootstrap-3.2.0/button-groups.less, themes/corona/css/build/bootstrap-3.2.0/buttons.less, themes/corona/css/build/bootstrap-3.2.0/carousel.less, themes/corona/css/build/bootstrap-3.2.0/close.less, themes/corona/css/build/bootstrap-3.2.0/code.less, themes/corona/css/build/bootstrap-3.2.0/component-animations.less, themes/corona/css/build/bootstrap-3.2.0/dropdowns.less, themes/corona/css/build/bootstrap-3.2.0/forms.less, themes/corona/css/build/bootstrap-3.2.0/glyphicons.less, themes/corona/css/build/bootstrap-3.2.0/grid.less, themes/corona/css/build/bootstrap-3.2.0/input-groups.less, themes/corona/css/build/bootstrap-3.2.0/jumbotron.less, themes/corona/css/build/bootstrap-3.2.0/labels.less, themes/corona/css/build/bootstrap-3.2.0/list-group.less, themes/corona/css/build/bootstrap-3.2.0/media.less, themes/corona/css/build/bootstrap-3.2.0/mixins.less, themes/corona/css/build/bootstrap-3.2.0/modals.less, themes/corona/css/build/bootstrap-3.2.0/navbar.less, themes/corona/css/build/bootstrap-3.2.0/navs.less, themes/corona/css/build/bootstrap-3.2.0/normalize.less, themes/corona/css/build/bootstrap-3.2.0/pager.less, themes/corona/css/build/bootstrap-3.2.0/panels.less, themes/corona/css/build/bootstrap-3.2.0/popovers.less, themes/corona/css/build/bootstrap-3.2.0/print.less, themes/corona/css/build/bootstrap-3.2.0/pagination.less, themes/corona/css/build/bootstrap-3.2.0/progress-bars.less, themes/corona/css/build/bootstrap-3.2.0/responsive-embed.less, themes/corona/css/build/bootstrap-3.2.0/responsive-utilities.less, themes/corona/css/build/bootstrap-3.2.0/scaffolding.less, themes/corona/css/build/bootstrap-3.2.0/tables.less, themes/corona/css/build/bootstrap-3.2.0/theme.less, themes/corona/css/build/bootstrap-3.2.0/thumbnails.less, themes/corona/css/build/bootstrap-3.2.0/tooltip.less, themes/corona/css/build/bootstrap-3.2.0/type.less, themes/corona/css/build/bootstrap-3.2.0/utilities.less, themes/corona/css/build/bootstrap-3.2.0/variables.less, themes/corona/css/build/bootstrap-3.2.0/wells.less, themes/corona/css/build/bootstrap-3.2.0/mixins/background-variant.less, themes/corona/css/build/bootstrap-3.2.0/mixins/alerts.less, themes/corona/css/build/bootstrap-3.2.0/mixins/border-radius.less, themes/corona/css/build/bootstrap-3.2.0/mixins/buttons.less, themes/corona/css/build/bootstrap-3.2.0/mixins/center-block.less, themes/corona/css/build/bootstrap-3.2.0/mixins/clearfix.less, themes/corona/css/build/bootstrap-3.2.0/mixins/forms.less, themes/corona/css/build/bootstrap-3.2.0/mixins/gradients.less, themes/corona/css/build/bootstrap-3.2.0/mixins/grid-framework.less, themes/corona/css/build/bootstrap-3.2.0/mixins/grid.less, themes/corona/css/build/bootstrap-3.2.0/mixins/hide-text.less, themes/corona/css/build/bootstrap-3.2.0/mixins/image.less, themes/corona/css/build/bootstrap-3.2.0/mixins/labels.less, themes/corona/css/build/bootstrap-3.2.0/mixins/list-group.less, themes/corona/css/build/bootstrap-3.2.0/mixins/nav-divider.less, themes/corona/css/build/bootstrap-3.2.0/mixins/nav-vertical-align.less, themes/corona/css/build/bootstrap-3.2.0/mixins/opacity.less, themes/corona/css/build/bootstrap-3.2.0/mixins/pagination.less, themes/corona/css/build/bootstrap-3.2.0/mixins/panels.less, themes/corona/css/build/bootstrap-3.2.0/mixins/progress-bar.less, themes/corona/css/build/bootstrap-3.2.0/mixins/reset-filter.less, themes/corona/css/build/bootstrap-3.2.0/mixins/resize.less, themes/corona/css/build/bootstrap-3.2.0/mixins/responsive-visibility.less, themes/corona/css/build/bootstrap-3.2.0/mixins/size.less, themes/corona/css/build/bootstrap-3.2.0/mixins/tab-focus.less, themes/corona/css/build/bootstrap-3.2.0/mixins/table-row.less, themes/corona/css/build/bootstrap-3.2.0/mixins/text-emphasis.less, themes/corona/css/build/bootstrap-3.2.0/mixins/text-overflow.less, themes/corona/css/build/bootstrap-3.2.0/mixins/vendor-prefixes.less, themes/corona/css/build/bootstrap-3.2.0/mixins, themes/corona/css/build/bootstrap-3.2.0, themes/corona/css/build/custom-design-classes/block-sidebar-padded.less, themes/corona/css/build/custom-design-classes/area-content-accent.less, themes/corona/css/build/custom-design-classes/blog-entry-list.less, themes/corona/css/build/custom-design-classes/block-sidebar-wrapped.less, themes/corona/css/build/custom-design-classes/testimonial-bio.less, themes/corona/css/build/custom-design-classes/recent-blog-entry.less, themes/corona/css/build/custom-design-classes, themes/corona/css/build/fonts/defaults.less, themes/corona/css/build/fonts/blue-sky.less, themes/corona/css/build/fonts/night-road.less, themes/corona/css/build/fonts/royal.less, themes/corona/css/build/fonts, themes/corona/css/build, themes/corona/css/presets/defaults.less, themes/corona/css/presets/blue-sky.less, themes/corona/css/presets/night-road.less, themes/corona/css/presets/royal.less, themes/corona/css/presets, themes/corona/css/bootstrap-modified.css, themes/corona/css, themes/corona/images/title.jpg, themes/corona/images/background.png, themes/corona/images, themes/corona/page_theme.php, themes/corona/title.php, themes/corona

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.

# Server Software
Apache/2.4.39 (Unix)

# Server API
cgi-fcgi

# PHP Version
5.6.40

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dbase, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, id3, idn, imap, json, libxml, lzf, mailparse, mbstring, mcrypt, mhash, ming, mssql, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, yats, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 0
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 4000
memory_limit - 128M
post_max_size - 48M
sql.safe_mode - Off
upload_max_filesize - 32M
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36