Skip to content
Snippets Groups Projects

3023322 - Contextual Links Style Update

7 unresolved threads
3 files
+ 119
0
Compare changes
  • Side-by-side
  • Inline
Files
3
  • ac28769a
    Issue #3259380 by lauriii, Wim Leers, DamienMcKenna, hooroomoo, bnjmnm:... · ac28769a
    Ben Mullins authored
    Issue #3259380 by lauriii, Wim Leers, DamienMcKenna, hooroomoo, bnjmnm: CKEditor 5's toolbar occludes Drupal's toolbar if and only if CKEditor 5 has focus
@@ -322,6 +322,16 @@
element.removeAttribute('required');
}
// Integrate CKEditor 5 viewport offset with Drupal displace.
// @see \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5ToolbarTest
// @see https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editorui-EditorUI.html#member-viewportOffset
$(document).on(
`drupalViewportOffsetChange.ckeditor5.${id}`,
(event, offsets) => {
editor.ui.viewportOffset = offsets;
},
);
editor.model.document.on('change:data', () => {
const callback = callbacks.get(id);
if (callback) {
@@ -372,6 +382,9 @@
if (!editor) {
return;
}
$(document).off(`drupalViewportOffsetChange.ckeditor5.${id}`);
if (trigger === 'serialize') {
editor.updateSourceElement();
} else {
Loading