Skip to content

Commit

Permalink
Merge branch '4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gengar-i committed Jul 10, 2023
2 parents e67bdd1 + 1679756 commit dbd08f6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ const VIEWPORT_TOP_OFFSET = 102;

(function (global, doc, ibexa) {
class BaseRichText {
constructor() {
constructor(config) {
this.ezNamespace = 'http://ibexa.co/namespaces/ezpublish5/xhtml5/edit';
this.xhtmlNamespace = 'http://www.w3.org/1999/xhtml';

this.editor = null;
this.viewportTopOffset = config?.viewportTopOffset ?? VIEWPORT_TOP_OFFSET;

this.xhtmlify = this.xhtmlify.bind(this);
this.getData = this.getData.bind(this);
Expand Down Expand Up @@ -176,10 +177,10 @@ const VIEWPORT_TOP_OFFSET = 102;
],
toolbar: {
items: toolbar,
ui: {
viewportTopOffset: {
top: VIEWPORT_TOP_OFFSET,
},
},
ui: {
viewportOffset: {
top: this.viewportTopOffset,
},
},
embedImage: {
Expand Down

0 comments on commit dbd08f6

Please # to comment.