Skip to content

Commit

Permalink
Revert "IBX-5784: CkEditor toolbar overflow fix (#86)" (#89)
Browse files Browse the repository at this point in the history
This reverts commit d7b1935.
  • Loading branch information
Gengar-i authored Jun 14, 2023
1 parent d7b1935 commit 5c993cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/bundle/Resources/public/js/CKEditor/core/base-ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ const VIEWPORT_TOP_OFFSET = 102;

(function (global, doc, ibexa) {
class BaseRichText {
constructor(config) {
constructor() {
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 @@ -177,7 +176,11 @@ const VIEWPORT_TOP_OFFSET = 102;
],
toolbar: {
items: toolbar,
viewportTopOffset: this.viewportTopOffset,
ui: {
viewportTopOffset: {
top: VIEWPORT_TOP_OFFSET,
},
},
},
embedImage: {
toolbar: [
Expand Down

0 comments on commit 5c993cb

Please sign in to comment.