Hi All,
I am trying to make a button to insert <br/> into my XML. I am using
<br/> for the same meaning as in XHTML.
My css is thus:
br:before {
content: "\A";
color: olive;
}
My button:
<button toolTip="Insert line break" icon="../icons/br.gif">
<command name="insert"
parameter="into {http://www.xmlmind.com/xmleditor/schema/iniva}br" />
</button>
The button works .... but leaves you in a state where you cannot
continue typing, or move the insertion point to the new line.
I found the only way to make it work, was be in the middle of some
#text when you clicked the button.
So, for instance, if you are at the end of a line, you press 'space',
'back-arrow', then click the line-break button, you are fine.
Is it possible to make a command that inserts the <br/> and
automatically moves the insertion point to the new line?
Thanks for any suggestions.
regards Jeremy