Ability to change the Document of a Controller in code #979
Unanswered
WaterDLaw
asked this question in
Feature Request
Replies: 1 comment
-
Your questions are all solved already. Please check again |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the main reason to add this has to do with Image/File/Video uploads
If we upload images to a bucket we do not want to do that in the Image Embed hander, since there is always the option to remove the image again before the actual creation of the Document that uses the Quill editor.
An approach would be to change the delta with custom logic and later add it the the current controller and override the current delta. For example:
controller.document = Document.fromJson(newDelta)
Currently the Document is final so we cannot change the document. All it needs is a set and getter for the document to the QuillController class.
Maybe i oversee certain things to achieve this in an other way, but I think this could be a nice feature. What would speak against to add something this simple?
Beta Was this translation helpful? Give feedback.
All reactions