Live data from Hacker News

Trix: A rich text editor for everyday writing

github.com

41–50 of 137 posts

Re: Trix: A rich text editor for everyday writing

#42

Earlier quoted context omitted.

Neat, thanks! Literally just this morning I was thinking to myself that I would give just about anything for a high quality OSS rich text editor capable of generating terse, correct HTML output. And here, not even 24 hours later , one just falls into my lap.

Looks like you got two wishes left. Use them wisely...

I don't know what my second wish will be, but I can tell you my third will be "I wish I had a monkey paw."

http://www.hulu.com/watch/33690

Re: Trix: A rich text editor for everyday writing

#43
post #24

Nice to see this particular bit of info high up in the README (though "as seen in Basecamp 3" would fit well in the Github repo description line): > Trix is an open-source project from Basecamp, the creators of Ruby on Rails. Millions of people trust their text to Basecamp, and we built Trix to give them the best possible editing experience. See Trix in action in the all-new Basecamp 3. Nothing gets me more intereste…

Agree. Although I would have wished to see it in action immediately (on an example page) without having to clone it to my machine.

Edit: Nevermind, just saw the edit on the comment below :)

Re: Trix: A rich text editor for everyday writing

#44
post #6
post #2

Since they didn't put a demo up on their site, here's one cobbled from their documentation: http://jsbin.com/cazewaxoje/1

I just added a demo: http://trix-editor.org/

On an Android, it does not let me select text (there is only one caret during edit). Is there some workaround / way to fix this?

Re: Trix: A rich text editor for everyday writing

#46
post #38
post #25

This is a Javascript project, but there is no NPM distribution for it. Edit: yes, it's not a Ruby gem. I stand corrected.

> This is a Javascript project It's not JavaScript, Trix is written in CoffeScript.

Isn't CoffeeScript the "Macro-assembler" of JavaScript? i.e. a simple 1:1 syntax mapping, without no differentiating semantics of its own. Or am I wrong?

Re: Trix: A rich text editor for everyday writing

#47
post #6

Earlier quoted context omitted.

I just added a demo: http://trix-editor.org/

Neat, thanks! Literally just this morning I was thinking to myself that I would give just about anything for a high quality OSS rich text editor capable of generating terse, correct HTML output. And here, not even 24 hours later , one just falls into my lap.

There's also ProseMirror [1], which I'm told is very good, and supports extensions of its document model to support things like embedded objects and Markdown, and is designed for collaborative editing -- all document operations are patches that can be sent over the network.

[1] http://prosemirror.net/

Re: Trix: A rich text editor for everyday writing

#48
post #46
post #38

Earlier quoted context omitted.

> This is a Javascript project It's not JavaScript, Trix is written in CoffeScript.

Isn't CoffeeScript the " Macro -assembler" of JavaScript? i.e. a simple 1:1 syntax mapping, without no differentiating semantics of its own. Or am I wrong?

It's neither a subset nor a superset of JavaScript. It's a language that isn't JavaScript that is compiled to JavaScript. There are to-JavaScript compilers for many languages now including Scala, Kotlin, Clojure and more. Maybe people who write CoffeeScript as part of some public thing consider themselves to be part of a JavaScript project, but I wouldn't.

Re: Trix: A rich text editor for everyday writing

#49

Earlier quoted context omitted.

Yes, they are all terrible. I don't know if this will be any better. They all highlight how bad the web is as an environment to host applications. A rich text editor - something that is a trivial toy project in any other application development environment - is impossible to build on the web in 2015.

It is not impossible. It just takes a lot of time and effort. It took two developers around 18 months to build Trix. The readme explains how our approach is different from other WYSIWYG editors. (Most others are just toolbars that call execCommand.)

Did you look at ProseMirror? http://prosemirror.net/

Re: Trix: A rich text editor for everyday writing

#50

Does anyone know if this would adapt well for real-time use with multiple people writing at once? Etherpad-style. Or would that need to be architected differently from the start? Also, sad that it's in Coffeescript.

ProseMirror [1] is designed for collaborative editing -- all document operations are patches that can be sent over the network. Like Trix, it uses its own document model, not contentEditable.

[1] http://prosemirror.net/

Post reply on HN