javascripteditorjs

Auto-applied inline tools in Editor.js


For a large project I am currently looking into the capabilities of https://editorjs.io/. The documentation is very helpful but I can't find information about the following question. Is there a way to auto-convert user input at the time of writing without using the inline toolbar but rather by listening to the user input. Let me give you a few examples to make things clearer:

I do not want to add an inline tool to provide a button to trigger those use cases. I want to automatically apply / trigger them while the user is creating input.

Any help is appreciated.


Solution

  • No, there is currently no way to do so. You would need to listen for changes and overwrite the buffer. I have a similar problem and I haven't been able to found a cleaner way.