You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"When I add contenteditable: false in the static get sanitize(){} of a custom inlinetool, it applies in real-time, but why doesn't it get added to the saved data when saving?
#2594
When clicked in the inline toolbar, contenteditable=false is applied correctly, but when I load the data using save() and outputData, contenteditable=false is not applied. How can I resolve this issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
`import { InlineTool } from '@editorjs/editorjs';
import './blanktoolstyle.css';
interface BlankButton extends HTMLButtonElement {
status: boolean;
}
export default class Blank implements InlineTool {
status: boolean;
button: HTMLButtonElement | null;
}
`
`
function EditorJs({ data, pagename, groupname }: { data?: any; pagename: string; groupname: string }) {
const ref = useRef(null);
}`
When clicked in the inline toolbar, contenteditable=false is applied correctly, but when I load the data using save() and outputData, contenteditable=false is not applied. How can I resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions