Skip to content

Commit

Permalink
Recover systematic showing of ui elements (only visible in ballon edi…
Browse files Browse the repository at this point in the history
…tor if usable).
  • Loading branch information
fsbraun committed Dec 21, 2024
1 parent 6dd9e50 commit 20a9e59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion private/js/cms.tiptap.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CMSTipTapPlugin {
save_callback: save_callback,
settings: settings,
});
el.addEventListener('focusout', ({editor, event}) => {
editor.on('blur', ({editor, event}) => {
this._blurEditor(editor, event);
});
editor.on('update', ({editor}) => {
Expand Down
5 changes: 2 additions & 3 deletions private/js/tiptap_plugins/cms.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,23 @@

import {Mark, mergeAttributes,} from '@tiptap/core';

'use strict';


const _markElement = {
addOptions() {
'use strict';
return {
HTMLAttributes: {},
};
},
parseHTML() {
'use strict';
return [
{
tag: this.name.toLowerCase()
},
];
},
renderHTML({ HTMLAttributes }) {
'use strict';
return [this.name.toLowerCase(), mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
},
addCommands() {
Expand Down

0 comments on commit 20a9e59

Please sign in to comment.