Re:Trix: A rich text editor for everyday writing
by ipsum2 on Monday October 19, 2015 @12:11AM
(#10411068)
How does this compare to Prosemirror? (http://prosemirror.net/)
[ Parent
| on HN ]
Re:Trix: A rich text editor for everyday writing
by gritzko on Monday October 19, 2015 @05:20AM
(#10411909)
From the document model standpoint, Prosemirror has a tree of nodes, while Trix has an array of blocks with a stack of block-level formatting. Mathematically equivalent, practically not so much.
Re:Trix: A rich text editor for everyday writing
by stephenr on Monday October 19, 2015 @02:07AM
(#10411374)
Thanks for linking to that, I like that it's based around markdown.
Re:Trix: A rich text editor for everyday writing
by msoad on Monday October 19, 2015 @01:41AM
(#10411307)
This doesn't support images as far as I can tell
Re:Trix: A rich text editor for everyday writing
by sstephenson on Monday October 19, 2015 @02:13AM
(#10411392)
Trix fully supports file attachments and image attachments, as documented in the readme. It includes an inline caption editor for images.
Trix also supports "content attachments" (currently undocumented) which allow embedding arbitrary HTML as attachments in the document. Basecamp 3 uses this feature to embed @mentions with avatars, and various oEmbed types, in messages and comments.
Re:Trix: A rich text editor for everyday writing
by sealocal on Friday October 23, 2015 @01:55PM
(#10440177)
I want to see those "content attachments" as a live demo!
I'm currently using CKEDITOR in a Rails app and inserting HTML "templates." CKEDITOR renders the HTML and allows the end-user (or content creator) to modify the HTML while it is rendered inside the contenteditable text area.
Re:Trix: A rich text editor for everyday writing
by manigandham on Monday October 19, 2015 @11:31AM
(#10413509)
It does, you can use the toolbar to enter urls for the image. Toolbar is hard to use though.