Giter Site home page Giter Site logo

Impressive about rich_editor HOT 14 OPEN

long1eu avatar long1eu commented on May 24, 2024
Impressive

from rich_editor.

Comments (14)

long1eu avatar long1eu commented on May 24, 2024

from rich_editor.

 avatar commented on May 24, 2024

from rich_editor.

long1eu avatar long1eu commented on May 24, 2024

from rich_editor.

long1eu avatar long1eu commented on May 24, 2024

ok, so who are going to port this library to Flutter? what's your plan?

from rich_editor.

 avatar commented on May 24, 2024

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

from rich_editor.

 avatar commented on May 24, 2024

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.

from rich_editor.

 avatar commented on May 24, 2024

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 ?

from rich_editor.

long1eu avatar long1eu commented on May 24, 2024

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.

from rich_editor.

 avatar commented on May 24, 2024

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 ?

from rich_editor.

long1eu avatar long1eu commented on May 24, 2024

from rich_editor.

 avatar commented on May 24, 2024

from rich_editor.

long1eu avatar long1eu commented on May 24, 2024

not at all

from rich_editor.

 avatar commented on May 24, 2024

from rich_editor.

shenmashi avatar shenmashi commented on May 24, 2024

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 extends PopupRoute<_DropdownRouteResult> {
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 extends PopupRoute {
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.

from rich_editor.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.