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
We can then have both opt in and out and a keyword "all" that enables or disables everything. Something like:
let el = document.getElementById('editor')
let editor = el.getEditor()
editor.disableCommands(['all']) // disables everything
editor.enableCommands(['copy','paste','cut','bold','underline']) // reenables the given array of commands
editor.checkCommands(['enlarge']) // True if the browser's UI supports a command with the name "enlarge"
The text was updated successfully, but these errors were encountered:
Original issue w3c/editing#141, w3c/editing#93
In summary, we want to be able to specify 2 lists of allowed/disallowed editing features for
HTMLElement
interfaceHTMLElement
subclass? Not sure it will work forcE
@johanneswilm has proposed a solution w3c/editing#93 (comment)
We can then have both opt in and out and a keyword "all" that enables or disables everything. Something like:
The text was updated successfully, but these errors were encountered: