News for hackers. Stuff that matters.
Re:Pell – A simple and small rich-text editor for the web by marijn on Thursday July 13, 2017 @06:44AM (#14760184)
Nonsense, I've written a much smaller one: `function tinyEditor(element) { element.contentEditable = true }`

That, plus a few crude buttons, is all this does. As several other comments point out, there's good reasons why real WYSIWYG packages are bigger—the user experience of working with a plain contentEditable element is still terrible, the output HTML still a complete mess. If you don't care much about that, you don't need an editor component, since setting an attribute and wiring up some buttons to call `execCommand` is easy enough to do from scratch.

Disclaimer: I work on one of those 'bloated' editors, http://prosemirror.net , and find it a little annoying when someone implies their crude afternoon hack is somehow equivalent and we're crazy for putting in all that effort.

Re:Pell – A simple and small rich-text editor for the web by jaredreich on Thursday July 13, 2017 @09:32AM (#14761043)
The last thing I want for notable developers of high quality WYSIWYG editors is to get upset. Take this with a grain of salt. Continue doing the great things you do with ProseMirror and your other valuable open source contributions. But don't get upset. Try getting inspired, to move with the times, to trust browsers more, to make YOUR projects smaller, lighter, and easier to use.

P.S. Just because something is small, doesn't mean it's a crude afternoon hack :)

Re:Pell – A simple and small rich-text editor for the web by krat0sprakhar on Thursday July 13, 2017 @01:24PM (#14763193)
> The last thing I want for notable developers of high quality WYSIWYG editors is to get upset.

While I'm certain you have good intentions, the size comparison chart at the top of the README is a bit misleading. It would be fair to list out the trade-offs on going ahead with ContentEditable so that users can know what they are getting if they choose Pell.

To clarify, Pell looks awesome and I don't intend to diss on your project or your hard work, just that the way the project's README is laid out I feel @marijn's response is not totally unwarranted.

Re:Pell – A simple and small rich-text editor for the web by shaunxcode on Thursday July 13, 2017 @05:03PM (#14765214)
Do you genuinely believe he has not explored that approach? How is one meant to get inspired by something they have already explored? Please don't be rude and wrong at the same time.
Re:Pell – A simple and small rich-text editor for the web by emodendroket on Thursday July 13, 2017 @03:29PM (#14764398)
I mean, the post you're replying to gives reasons why they didn't take that approach, and this reply seems vaguely insulting.
Re:Pell – A simple and small rich-text editor for the web by ctrlrsf on Thursday July 13, 2017 @08:27AM (#14760680)
@marijn On prosemirror.net home page, typing "#<space>" in the sample editor seems to break it.
Re:Pell – A simple and small rich-text editor for the web by marijn on Thursday July 13, 2017 @02:42PM (#14763960)
Good point -- I had some CSS attached to H1 nodes that accidentally also matched H1s in the editor. Should be fixed now.
Re:Pell – A simple and small rich-text editor for the web by sk5t on Thursday July 13, 2017 @03:05PM (#14764187)
Also note, some of the tooltips appear as "undefined" and there's no way to advance the cursor past a horizontal rule at the end of the document.
Re:Pell – A simple and small rich-text editor for the web by marijn on Friday July 14, 2017 @03:51AM (#14768259)
What do you mean by tooltips?

There's a solution in the works for the latter problem.

Re:Pell – A simple and small rich-text editor for the web by MrGeneric on Friday July 14, 2017 @04:40AM (#14768430)
The tooltips that appear when hovering over toolbar items. The ones that are dropdowns, 'Insert' and 'Type' show up as undefined.
Re:Pell – A simple and small rich-text editor for the web by nvr219 on Thursday July 13, 2017 @12:00PM (#14762410)
snap
Re:Pell – A simple and small rich-text editor for the web by inertial on Thursday July 13, 2017 @01:02PM (#14762972)
Prosemirror's logo reminds me of : https://dribbble.com/shots/2054672-Neg-Owl-4
Re:Pell – A simple and small rich-text editor for the web by marijn on Friday July 14, 2017 @03:52AM (#14768266)
... more than a little, even. I'll talk to the designer of the logo.
Re:Pell – A simple and small rich-text editor for the web by veli_joza on Thursday July 13, 2017 @07:08AM (#14760295)
Even as beginner in web tech, I was convinced of the same after glancing at the code. There's probably more project packaging description LoC than logic code, so SNR is quite low.
Re:Pell – A simple and small rich-text editor for the web by usaphp on Thursday July 13, 2017 @10:23AM (#14761470)
Your prosemirror homepage has a horizontal scroll bar when viewed from iPhone
Re:Pell – A simple and small rich-text editor for the web by marijn on Thursday July 13, 2017 @02:50PM (#14764034)
Thanks for pointing that out. CSS is hard. Should be fixed now.
Re:Pell – A simple and small rich-text editor for the web by laktek on Thursday July 13, 2017 @07:55AM (#14760533)
Came here to post about ProseMirror, glad you commented :)
Re:Pell – A simple and small rich-text editor for the web by anilgulecha on Thursday July 13, 2017 @07:16AM (#14760336)
Thanks for prosemirror, marijn! Big fan :)