Hello, I want to update CM 6 editor to show border for the .cm-editor
class like this in case of error or warning -
How to update the editorState to indicate error or warning?
Hello, I want to update CM 6 editor to show border for the .cm-editor
class like this in case of error or warning -
How to update the editorState to indicate error or warning?
EditorView.editorAttributes
can be used, probably with a state field if this is dynamic, to add a class to the outer editor element.