[EDIT: Just for reference, the title originally was 'the right way to content manage..'] I'd maybe call this "an" approach, rather than the 'right' approach :) Already, prosemirror has provided a solid alternative, with things like custom-schemas, which ensure we're no longer in contenteditable-copy/paste hell. There's substance.io and quilljs as well. Any of these could be the right approach for a particular CMS pro…
I just came here to write that I think this is THE right approach for wysiwyg editor. Having a full model of the document tree rather and working from that rather than sanitizing `contenteditable`. I expect this approach to automatically solve many problems that other wysiwyg editors have.
React Draft Wysiwyg
11–20 of 45 posts
Re: React Draft Wysiwyg
#12Earlier quoted context omitted.
I just came here to write that I think this is THE right approach for wysiwyg editor. Having a full model of the document tree rather and working from that rather than sanitizing `contenteditable`. I expect this approach to automatically solve many problems that other wysiwyg editors have.
Prosemirror still uses contenteditable under the hood though. I actually wonder why that is the case.
Re: React Draft Wysiwyg
#13(A requirement on the modern web, since you don't want to edit a file only to find out that your version was overwritten by another person who happened to be editing at the same time).
Re: React Draft Wysiwyg
#14Nice idea, but functionally not quite there yet.
Re: React Draft Wysiwyg
#15One important thing seems to be missing though: collaborative editing. (A requirement on the modern web, since you don't want to edit a file only to find out that your version was overwritten by another person who happened to be editing at the same time).
Re: React Draft Wysiwyg
#16Re: React Draft Wysiwyg
#17Doesn't seem to be working on mobile. iOS 10
Re: React Draft Wysiwyg
#18I tried to reposition the cursor to no avail (the whole edit area loses and regains focus on each tap).
Also, I can't delete stuff (backspace does nothing).
Edit: at this point I just quit trying.
Re: React Draft Wysiwyg
#19Not sure if this is a bug, but if I set a specific font size, it doesn't attach any kind of unit. For example, if I select 18, it doesn't convert that to 18px or 18em...just "18":
This is some text.
I believe that's not valid css.
Re: React Draft Wysiwyg
#20[EDIT: Just for reference, the title originally was 'the right way to content manage..'] I'd maybe call this "an" approach, rather than the 'right' approach :) Already, prosemirror has provided a solid alternative, with things like custom-schemas, which ensure we're no longer in contenteditable-copy/paste hell. There's substance.io and quilljs as well. Any of these could be the right approach for a particular CMS pro…
I did not said only right approach :)