Skip to content

Commit

Permalink
Merge pull request #3 from adriano66/master
Browse files Browse the repository at this point in the history
Can't edit title after switching back from source view
  • Loading branch information
pkerspe authored Jun 7, 2017
2 parents 8418fbc + 598f200 commit 9168e11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getCollapsibleItem() {
return collapsibleItem;
}

CKEDITOR.dtd.$editable.span = 1;
CKEDITOR.dtd.$editable.a = 1;

CKEDITOR.plugins.add('collapsibleItem', {
requires: 'widget',
Expand All @@ -26,7 +26,7 @@ CKEDITOR.plugins.add('collapsibleItem', {
template: getCollapsibleItem(),
editables: {
title: {
selector: '.collapsible-item-title-link-text',
selector: '.collapsible-item-title-link',
allowedContent: 'strong em u span'
},
content: {
Expand Down Expand Up @@ -96,6 +96,7 @@ CKEDITOR.plugins.add('collapsibleItem', {

onLoad: function () {
CKEDITOR.addCss(
'a.collapsible-item-title-link { display: block; }' +
'.collapsible-item::before {font-size:10px;color:#000;content: "Bootstrap collapsible element"}' +
'.collapsible-item-heading {background-color:#f4f8ef;color:#72b73a;text-decoration:none;font-size:20px;} ' +
'.collapsible-item-collapse {display:block;background-color:#ddd;min-height:10px;} ' +
Expand Down

0 comments on commit 9168e11

Please sign in to comment.