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
I'm trying to implement some custom behaviour on text selection and processinh HTML; I was attempting to implement the solutions discribed here, however, they require access to the editor's schema. From my investigation into the docs and issues, you can create a custom schema, but there doesn't seem to be a way to obtain said schema at runtime. Is there a way to retrieve this from the editor?
The text was updated successfully, but these errors were encountered:
I'm having the same problem here. I needed to get the current selected content or either use the selection {from,to} object from the editorState to indentify the content. However the from/to number does not have any corresponding indexes in the getText(), getHTML() or getJSON() methods.
A textBetween(from, to) method in the editorBridge would be perfect for such cases.
Currently this is not possible in the built in editor, it is only possible with a custom extension using the advanced setup.
This does seem useful though so will add this to the roadmap
I'm trying to implement some custom behaviour on text selection and processinh HTML; I was attempting to implement the solutions discribed here, however, they require access to the editor's schema. From my investigation into the docs and issues, you can create a custom schema, but there doesn't seem to be a way to obtain said schema at runtime. Is there a way to retrieve this from the editor?
The text was updated successfully, but these errors were encountered: