Articles are kind of boring. We can just have a few fields that need
to be filled out at any point to create and article. One thing that I
think we need however is a WYSIWYG editor for the stories.
This is simple enough with any various library out there and you can
easily create a new field that will overwrite the textarea field for
the story. This, BTW, will get a lot simpler with Newforms admin.
I see the need for this editor to do a few basic things:
- Insert paragraph tags around each paragraph
- Blockquotes around blockquotes
- List items (ul and ol)
- Allow simple insertion of links (anchor tags) in the text
- Put includes (media, images, related stories, etc) inside the text
I really like the way that Ellington handles includes by putting tags
into the story and allows you to add custom classes. This involves
some sort of custom renderer.
I think that there should also be two views, code view and WYSIWYG
view. I like the way that TinyMCE allows the user to create custom
styles that can be applied to text for the WYSIWYG that is site
specific. TinyMCE is a little buggy though and is tough to configure.
YUI is my library of choice right now. I feel like YUI with lot's of
customizations could take care of all this for us. I especially would
like to see this[1] style inline selector.
What do you guys think? I really think this is an area that would make
this accepted by the typical newspaper over the digital media staff at
a newspaper.
Mn
1)
http://developer.yahoo.com/yui/examples/editor/
imagebrowser_editor.html