Closed adrian-moisa closed 6 months ago
Took some effort, but now, thanks to the cleaned up code, it's completely possible to run DocumentController
on the server side. Here's a snapshot from insomnia demonstrating a simple endpoint for converting delta docs to plain text.
Edit Delta Docs In Dart Server
You can edit delta docs on the server side using
DocumentController
. This can come in handy for a couple of scenarios:Importing Visual Editor Server By importing the server side library we ensure that no
dart:ui
dependencies are imported. Note that both the frontend and server versions of the library use the same code. They are just different export files.