Using Cactus as an HTML editor and some bugs

7 views
Skip to first unread message

Karsten Wolf

unread,
Nov 26, 2013, 6:03:42 AM11/26/13
to cactus-outliner-dev
Normally I use Cactus just to browse because the editing capabilities still leave a lot to be desired and find/replace is still on the todo list.

Nevertheless, I wrote some html from scratch in Cactus yesterday and was delighted at the ease of element creation.

Start editing, just type the name and indent the elements that belongs inside; not caring about open and close tags or indentation like you have to when using a text editor.

Some observations:

- I'm NOT a html crack.

- The editor needs work for a better flow. Too many structure/text editor switches. The esc key gets hot.

- <meta charset="UTF-8"> needs to be included by hand. I was under the impression that spitting out utf-8 encoded html 5 would suffice.

- <br> are complicated to insert since they are standalone elements. That references an early bug, that the tail section of a node was not saved. Since then Cactus stores the tail, the text after the node, in the attributes.

Until I have support for such cases, you'll have open an attribute editor (ctrl-enter), add a node (return), name it "br", TAB to the value field, enter your text and just close the window.
Screen 2013-11-26 um 11.53.21.png
Reply all
Reply to author
Forward
0 new messages