News for hackers. Stuff that matters.
Re:Sir Trevor Editor by tikhonj on Friday October 18, 2013 @03:09AM (#6570176)
I like the "block" abstraction. It seems like a good way to visually work with structured content. It also makes the editor really easy to customize (at least conceptually), which I find a big plus.

At least in the example, there did not seem to be a way to undo things. This is a bit annoying, especially because it forces a confirmation step when deleting things. I think most common use-cases would be much better served by being able to undo a delete than having to confirm it each time. Even if you don't want to have a general undo button, I would prefer a GMail-style undo link that only pops up after you've deleted something to the current behavior.

Re:Sir Trevor Editor by voyou on Friday October 18, 2013 @05:32AM (#6570488)
: I like the "block" abstraction. It seems like a good way to visually work with structured content.

Hmm, IDK. I can see that it could be a good way to represent and manipulate the chunks of text once you've got them, but having to click a special icon and choose the block type every time you add a new paragraph (rather than just pressing "return" for the most common case of a new text paragraph) seems pretty clumsy.

Re:Sir Trevor Editor by joecorcoran on Friday October 18, 2013 @07:03AM (#6570724)
I really like the blocks idea. Considering this will be used by content creators who are not necessarily code savvy, it seems like a great way to allow them to organise the structure of the document without giving them enough rope to hang themselves. In practise, most content will be text and they can just keep writing and hitting return. I can't imagine many documents will include a large number of other content types.

I currently work on a site that uses TinyMCE and inserting images, videos etc. is a nightmare. There's this combination of the burden of HTML sanitization and the illusion of total freedom that TinyMCE gives to content creators. Something with better separation of content types would be wonderful.

Re:Sir Trevor Editor by dchest on Friday October 18, 2013 @05:56AM (#6570554)
Why can't you just press Return and continue writing? You don't have to split your text into several blocks.
Re:Sir Trevor Editor by ajanuary on Friday October 18, 2013 @06:15AM (#6570604)
Would be cool to have the ability to split a block on an empty line so you can easily move a multimedia block between existing paragraphs.
Re:Sir Trevor Editor by gizzlon on Friday October 18, 2013 @07:19AM (#6570767)
Or maybe split a block by clicking (think scissor tool) or something..
Re:Sir Trevor Editor by 7952 on Friday October 18, 2013 @11:08AM (#6571776)
OneNote uses a less rigorously enforced version of the block abstraction. You don't have to work in blocks but it encourages you to. What makes it actually usable is using tables to create structure.
Re:Sir Trevor Editor by jeena on Friday October 18, 2013 @08:11AM (#6570912)
I used this block idea in a CMS I once wrote but basically none of our clients got it and therefore they didn't like it. In the end I rewrote it to the normal way.
Re:Sir Trevor Editor by Udo on Friday October 18, 2013 @11:21AM (#6571862)
This is interesting. Back in 2005 my company had built this exact same editor for our CMS product and customers hated it, too. Turns out, most people seem to prefer filling in forms. However, maybe the time is now right for a change.

Direct editing is becoming more common and therby acceptable I think.

Re:Sir Trevor Editor by wim on Friday October 18, 2013 @07:54AM (#6570857)
Yep this is nicely done!

We also use a similar block (or widgets) approach for our editor, and it works really well for mixing all kinds of content in one editor.

Storing them as JSON objects with client-side classes that know how to render them also makes it really easy to add or extend the widgets later on.

Re:Sir Trevor Editor by kussec on Friday October 18, 2013 @04:37AM (#6570365)
I agree with you. I prefer the concept of undoing because I personally don't like to be asked if I really want to perform each action I intended to do. It makes also the application feels faster because it require one step less.
Re:Sir Trevor Editor by hcarvalhoalves on Friday October 18, 2013 @02:14PM (#6572992)
> I like the "block" abstraction. It seems like a good way to visually work with structured content.

I've seen this idea in the real word, and it fails with editors. If you provide WYSIWYG, editors expect to format content just like one does in Word or InDesign, absolutely positioning elements, and the result to be identical (which is obviously a problem nowadays with elastic layouts and mobile sites).

Re:Sir Trevor Editor by elwell on Friday October 18, 2013 @05:45PM (#6574214)
Concrete5 CMS has been doing a good job with blocks for years.