Pell – A simple and small rich-text editor for the web
11–20 of 106 posts
Re: Pell – A simple and small rich-text editor for the web
#12Re: Pell – A simple and small rich-text editor for the web
#13Re: Pell – A simple and small rich-text editor for the web
#14Re: Pell – A simple and small rich-text editor for the web
#15Unfortunately there's no way around this short of not using contenteditable - which is even worse sometimes.
Most editors feature customized builds which let you reduce the footprint of the editor. If you're looking for quick gains first and foremost disable support for pasting from other applications, e.g. MS Word. It's always a major feature.
Re: Pell – A simple and small rich-text editor for the web
#16This is cool :) That said (and not to take thunder away from your page), this is possible because the HTML spec itself allows for any element to be made into a "WYSIWYG" editor by adding the "contenteditable" attribute. What most other larger editors are doing is working around some of the horrendous non-standardized versions of execCommand which varies across browsers. Ideally a web standards body should come out wi…
I note that `contenteditable` itself began as a proprietary DOM/HTML extension by Microsoft in IE5.5 back in 2000 - Gecko didn't support it until 2003. In the 2008 draft of the HTML5 specification[1] the `contenteditable` attribute's summary seems to imply that it's only featured because it "is a common attribute".
[1]: https://www.w3.org/TR/2008/WD-html5-20080610/editing.html#co...
Re: Pell – A simple and small rich-text editor for the web
#17Appears to fail my semantics test right off the bat. Type "Line one\nLine two" results in: Line one Line two
Since it uses contenteditable, the result depends on your browser. Firefox gives me Line one Line two
Re: Pell – A simple and small rich-text editor for the web
#18This is cool :) That said (and not to take thunder away from your page), this is possible because the HTML spec itself allows for any element to be made into a "WYSIWYG" editor by adding the "contenteditable" attribute. What most other larger editors are doing is working around some of the horrendous non-standardized versions of execCommand which varies across browsers. Ideally a web standards body should come out wi…
This library is using execCommand: https://github.com/jaredreich/pell/blob/master/src/pell.js I note that `contenteditable` itself began as a proprietary DOM/HTML extension by Microsoft in IE5.5 back in 2000 - Gecko didn't support it until 2003. In the 2008 draft of the HTML5 specification[1] the `contenteditable` attribute's summary seems to imply that it's only featured because it "is a common attribute". [1]: http…
Re: Pell – A simple and small rich-text editor for the web
#19Re: Pell – A simple and small rich-text editor for the web
#20As a person who used to work for a company developing one of the more popular in-browser text editors I can tell you that all that "bloat" is there so that you'll get consistent results across browsers. Unfortunately there's no way around this short of not using contenteditable - which is even worse sometimes. Most editors feature customized builds which let you reduce the footprint of the editor. If you're looking f…
For instance, react-native, electron or windows store apps.