Page 1 of 1

Bug: Triple-click and overtype in <title> fails on <fig> and

Posted: Thu Dec 04, 2014 2:49 pm
by DanTemple
OxygenXML 16.1.

If you triple click text in say a <p> or a <li> in the Editor, and then overtype, the element stays as a <p> or <li> and the text gets replaced, as you'd expect.

But:

If you do this on a <title> for a figure, the <title> gets replaced by a <p>.

If you do this for a <title> for a table, it fails and says "Text is not allowed in element <table>".

Hope this can be fixed.

Re: Bug: Triple-click and overtype in <title> fails on <fig>

Posted: Thu Dec 04, 2014 6:12 pm
by Radu
Hi Dan,

I understand and we'll work to make this work more intuitively.

Basically triple clicking selects an entire XML element (with tags and content) so typing over it will first remove that entire element then the text would be inserted directly in the content. We have some strategies which as you mentioned in some cases create new paragraphs but this behavior can definitely be improved.

I'll update this forum thread when we make an improvement for this as well.

Regards,
Radu

Re: Bug: Triple-click and overtype in <title> fails on <fig>

Posted: Tue May 19, 2015 10:57 am
by Radu
Hi,

Just to update this thread, in Oxygen 17 you can triple click a paragraph or a title and type directly in order to insert text inside it instead of the old non-intuitive behavior or removing the element.

Regards,
Radu