Skip to content

Commit 79f4563

Browse files
authored
IBX-5376: Added possibility to change config of CKE (#79)
1 parent cba61aa commit 79f4563

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const VIEWPORT_TOP_OFFSET = 102;
119119
init(container) {
120120
const wrapper = this.getHTMLDocumentFragment(container.closest('.ibexa-data-source').querySelector('textarea').value);
121121
const section = wrapper.childNodes[0];
122-
const { toolbar, extraPlugins = [] } = window.ibexa.richText.CKEditor;
122+
const { toolbar, extraPlugins = [], extraConfig = {} } = window.ibexa.richText.CKEditor;
123123
const locale = new Intl.Locale(doc.querySelector('meta[name="LanguageCode"]').content);
124124
const blockCustomStyles = Object.entries(ibexa.richText.customStyles)
125125
.filter(([, customStyleConfig]) => !customStyleConfig.inline)
@@ -209,6 +209,7 @@ const VIEWPORT_TOP_OFFSET = 102;
209209
language: {
210210
content: locale.language,
211211
},
212+
...extraConfig,
212213
}).then((editor) => {
213214
this.editor = editor;
214215
const initialData = this.getData();

src/bundle/Resources/public/scss/_general.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
min-height: calculateRem(20px);
187187
}
188188

189-
[id] {
189+
[id]:not(.ibexa-data-source__richtext) {
190190
position: relative;
191191

192192
&:before {

0 commit comments

Comments
 (0)