Provides a way to asynchronously insert files into the editor using decoration-based placeholders.
An IFileInsertHandler interface should be passed to describe what to do with the file at each step.
There is a default implementation at FileInsertHandler that tries to handle as much as possible.
Extend it to use it and define saveFile and generatePreview. Everything else has a default implementation (but can be overridden as needed).
To customize id generation, extend FileInsertHandler and override its FileInsertHandler.generateId method.
Provides a way to asynchronously insert files into the editor using decoration-based placeholders.
An IFileInsertHandler interface should be passed to describe what to do with the file at each step. There is a default implementation at FileInsertHandler that tries to handle as much as possible.
Extend it to use it and define
saveFileandgeneratePreview. Everything else has a default implementation (but can be overridden as needed). To customize id generation, extend FileInsertHandler and override its FileInsertHandler.generateId method.