rich_editor
rich_editor copied to clipboard
Impressive
This is very impressive widget.
The format that the data is saved in is similar to quill perhaps. Is it json by any chance.
Looking to help extend this and am thinking that the quill format is a nice way to do it.
You know quill ?
Not yet, but I can learn. Can you give me some refs?
Pe 23 dec. 2017 15:52, "gedw99" [email protected] a scris:
This is very impressive widget.
The format that the data is saved in is similar to quill perhaps. Is it json by any chance.
Looking to help extend this and am thinking that the quill format is a nice way to do it.
You know quill ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AI2nVnTVCzz-pjY-EohxuYao_zhHorQVks5tDQWjgaJpZM4RLrE5 .
https://pub.dartlang.org/packages/angular_quill
So already written in dart. That's why I suggested it.
It's a very popular rich text editor too. https://quilljs.com
There is an add-on that uses y.js to give it the ability to sync changes with other users too so you get Google docs like functionality. https://github.com/y-js/y-richtext
So I am planning to integrate the y.js functionality in as dart. Should not be too hard.
Let me know what you think. I would love to extend from what you have so dart and flutter users have a solid and syncing editor. Very powerful
On Sat, Dec 23, 2017, 14:55 Razvan Lung [email protected] wrote:
Not yet, but I can learn. Can you give me some refs?
Pe 23 dec. 2017 15:52, "gedw99" [email protected] a scris:
This is very impressive widget.
The format that the data is saved in is similar to quill perhaps. Is it json by any chance.
Looking to help extend this and am thinking that the quill format is a nice way to do it.
You know quill ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4, or mute the thread < https://github.com/notifications/unsubscribe-auth/AI2nVnTVCzz-pjY-EohxuYao_zhHorQVks5tDQWjgaJpZM4RLrE5
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4#issuecomment-353727375, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwq8TJxL4PMHgDIUz0BOK_Dba7m5Yks5tDQZOgaJpZM4RLrE5 .
Thanks! I'll take a look and come back with an answer.
Pe 23 dec. 2017 16:02, "gedw99" [email protected] a scris:
https://pub.dartlang.org/packages/angular_quill
So already written in dart. That's why I suggested it.
It's a very popular rich text editor too. https://quilljs.com
There is an add-on that uses y.js to give it the ability to sync changes with other users too so you get Google docs like functionality. https://github.com/y-js/y-richtext
So I am planning to integrate the y.js functionality in as dart. Should not be too hard.
Let me know what you think. I would love to extend from what you have so dart and flutter users have a solid and syncing editor. Very powerful
On Sat, Dec 23, 2017, 14:55 Razvan Lung [email protected] wrote:
Not yet, but I can learn. Can you give me some refs?
Pe 23 dec. 2017 15:52, "gedw99" [email protected] a scris:
This is very impressive widget.
The format that the data is saved in is similar to quill perhaps. Is it json by any chance.
Looking to help extend this and am thinking that the quill format is a nice way to do it.
You know quill ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4, or mute the thread < https://github.com/notifications/unsubscribe- auth/AI2nVnTVCzz-pjY-EohxuYao_zhHorQVks5tDQWjgaJpZM4RLrE5
.
— You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4#issuecomment-353727375, or mute the thread <https://github.com/notifications/unsubscribe- auth/ATuCwq8TJxL4PMHgDIUz0BOK_Dba7m5Yks5tDQZOgaJpZM4RLrE5> .
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4#issuecomment-353727660, or mute the thread https://github.com/notifications/unsubscribe-auth/AI2nVn4aEwilx46d09vTReMgRLebZ-DUks5tDQfrgaJpZM4RLrE5 .
ok, so who are going to port this library to Flutter? what's your plan?
Right now i have to chicken out. Just no bandwidth.
I used y.js witha web / javascript client on an old project and it worked really well with quill. This is why i brouht it up.
here is another one btw: https://github.com/ipfs-shipyard/peerpad/blob/master/docs/ARCHITECTURE.md
Hey again,
I have been doing some research on this and have a MUCH better approach now.
There is a library called automerge. It is able to take json and keep it in sync between multiple instances on different devices. It's based on CRDT and works very well. The maintainers are talking about making a port to Dart, but it's not started yet. It should be a reasonable easy port.
So the only thing then that matters is how you serialise the HTML widget to JSON. I suspect you won't need to do anything special but I am not sure yet until I do more testing.
In your code I don't see any code that serialises the contents of the widget.... You never got to the functionality of saving and loading content to and from json ?
hi!
No I don't do that for now. The thing here is that I don't really want to use and html conversion approach. I'm still thinking on this. Anyways this lib is old and I didn't have time to maintain it. I think that I would need to take a different approach on building this too.
appreciate your comments. Yours is the only one i have found, and if you can illustrate how you would rewrite it then maybe me or someone will do it. Is that ok ?
Sorry but I don't have time.
vin., 20 apr. 2018, 18:53 gedw99 [email protected] a scris:
appreciate your comments. Yours is the only one i have found, and if you can illustrate how you would rewrite it then maybe me or someone will do it. Is that ok ?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4#issuecomment-383140323, or mute the thread https://github.com/notifications/unsubscribe-auth/AI2nVrILNGniiYg64dhMeEbTTuWRpakeks5tqgRrgaJpZM4RLrE5 .
Do you mind if I work and change it substantially ?
On Sat, Apr 21, 2018, 7:09 PM Razvan Lung [email protected] wrote:
Sorry but I don't have time.
vin., 20 apr. 2018, 18:53 gedw99 [email protected] a scris:
appreciate your comments. Yours is the only one i have found, and if you can illustrate how you would rewrite it then maybe me or someone will do it. Is that ok ?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <https://github.com/long1eu/rich_editor/issues/4#issuecomment-383140323 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AI2nVrILNGniiYg64dhMeEbTTuWRpakeks5tqgRrgaJpZM4RLrE5
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4#issuecomment-383313359, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwrdpelcpoO5PAGKP_8Md4l0SjWhmks5tq2e7gaJpZM4RLrE5 .
not at all
Ok I will fork and change allot of it.
If you get time to explain your point of view on how you work approach it then let me know.
On Sun, Apr 22, 2018, 11:08 AM Razvan Lung [email protected] wrote:
not at all
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/long1eu/rich_editor/issues/4#issuecomment-383366791, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwsSPuMwR48BOrauTGnt5-VVIP7pTks5trEiagaJpZM4RLrE5 .
compiler message: file:///Users/shenma/Documents/Flutter/projects/rich_editor/rich_editor/lib/src/material/dropdown.dart:267:7: Error: The non-abstract class '_DropdownRoute' is missing implementations for these members: compiler message: 'barrierLabel'. compiler message: Try to either compiler message: - provide an implementation, compiler message: - inherit an implementation from a superclass or mixin, compiler message: - mark the class as abstract, or compiler message: - provide a 'noSuchMethod' implementation. compiler message: compiler message: class _DropdownRoute<T> extends PopupRoute<_DropdownRouteResult<T>> { compiler message: ^^^^^^^^^^^^^^ compiler message: file:///Users/shenma/Documents/Flutter/flutter/packages/flutter/lib/src/widgets/routes.dart:831:14: Context: 'barrierLabel' is defined here. compiler message: String get barrierLabel; compiler message: ^^^^^^^^^^^^ compiler message: file:///Users/shenma/.pub-cache/hosted/pub.dartlang.org/material_color_picker-0.0.1/lib/src/dropdown.dart:33:7: Error: The non-abstract class '_WidgetDropdownRoute' is missing implementations for these members: compiler message: 'barrierLabel'. compiler message: Try to either compiler message: - provide an implementation, compiler message: - inherit an implementation from a superclass or mixin, compiler message: - mark the class as abstract, or compiler message: - provide a 'noSuchMethod' implementation. compiler message: compiler message: class _WidgetDropdownRoute<T> extends PopupRoute<T> { compiler message: ^^^^^^^^^^^^^^^^^^^^ compiler message: file:///Users/shenma/Documents/Flutter/flutter/packages/flutter/lib/src/widgets/routes.dart:831:14: Context: 'barrierLabel' is defined here. compiler message: String get barrierLabel; compiler message: ^^^^^^^^^^^^ compiler message: file:///Users/shenma/Documents/Flutter/projects/rich_editor/rich_editor/lib/src/widgets/rich_editable_text.dart:873:18: Error: Too many positional arguments: 0 allowed, 1 given. compiler message: renderObject.setCaretPrototype(currentStyle.fontSize); compiler message: ^ Compiler failed on /Users/shenma/Documents/Flutter/projects/rich_editor/rich_editor_demo/lib/main.dart
FAILURE: Build failed with an exception.