Skip to content
Permalink
Browse files

Possibly unneeded, but logical, changes to custom Comcode HTML tag sp…

…ecification for WYSIWYG
  • Loading branch information...
chrisgraham committed Jul 29, 2019
1 parent d7271a5 commit 29c8bbd27916c6e68f749f8532f39d99901ebda7
Showing with 4 additions and 1 deletion.
  1. +4 −1 data/ckeditor/plugins/showcomcodeblocks/plugin.js
@@ -1,4 +1,4 @@
( function() {
( function() {
'use strict';

CKEDITOR.plugins.add( 'showcomcodeblocks', {
@@ -22,6 +22,7 @@
while ( ( tag = tagsBlock.pop() ) ) {
trailing = tagsBlock.length ? ',' : '';

CKEDITOR.dtd.$editable['comcode-' + tag] = 1;
CKEDITOR.dtd.$block['comcode-' + tag] = 1;
CKEDITOR.dtd['comcode-' + tag] = CKEDITOR.dtd.div;

@@ -37,6 +38,8 @@
while ( ( tag = tagsInline.pop() ) ) {
trailing = tagsInline.length ? ',' : '';

CKEDITOR.dtd.$editable['comcode-' + tag] = 1;
CKEDITOR.dtd.$inline['comcode-' + tag] = 1;
CKEDITOR.dtd['comcode-' + tag] = CKEDITOR.dtd.span;

cssInline += 'comcode-' + tag + trailing;

0 comments on commit 29c8bbd

Please sign in to comment.
You can’t perform that action at this time.