visual-space / visual-editor

Rich text editor for Flutter based on Delta format (Quill fork)
MIT License
283 stars 44 forks source link

Controller - Build has completed callback #155

Closed adrian-moisa closed 1 year ago

adrian-moisa commented 1 year ago

We need a callback for detecting when the document plain text has changed but timed to be triggered after the build. Such that we can extract the latest rectangles as well. the current callbacks don't work:

Add new callback: onTextReplaceComplete(). Thanks to this new callback we can avoid comparing via onBuildComplete() the new text and the old text to see if the text has changed. Therefore the editor will be more performant, especially for large documents.