visibility:-oxy-collapse-text; Element Insert Side-effect?
Posted: Wed Oct 09, 2013 10:34 pm
I'm building a CSS style sheet for editing that uses form controls in the CSS (Oxy version 15.1 64bit).
As suggested by Oxygen Help, I'm using the visibility property to prevent editing of the elements content outside of the form control using "visibility:-oxy-collapse-text;". This works as expected.
However, it appears there's a side-effect of using this property: it prevents insertion of new elements. The reason appears to be as follows: Oxygen Help says regarding the visibility:-oxy-collapse-text; property
"If an element is marked as -oxy-collapse-text you are not able to position the caret inside it and edit it." (http://www.oxygenxml.com/doc/ug-editor/ ... nsion.html)
It seems that a side-effect of this is that you also cannot locate the caret in an element with a form control and insert a new element. For example, if I have elements "a", "b", and "c" in my Schema defined as consecutive siblings, and in my document I have "a" and "c" and use form controls to edit them, I have no way to enter "b" between them.
Is this expected behavior? Am I missing some way to
(1) use form controls for a series of elements
(2) hide the text content from appearing outside the form control
(3) while still allowing me to select an element and insert a new element after it
As suggested by Oxygen Help, I'm using the visibility property to prevent editing of the elements content outside of the form control using "visibility:-oxy-collapse-text;". This works as expected.
However, it appears there's a side-effect of using this property: it prevents insertion of new elements. The reason appears to be as follows: Oxygen Help says regarding the visibility:-oxy-collapse-text; property
"If an element is marked as -oxy-collapse-text you are not able to position the caret inside it and edit it." (http://www.oxygenxml.com/doc/ug-editor/ ... nsion.html)
It seems that a side-effect of this is that you also cannot locate the caret in an element with a form control and insert a new element. For example, if I have elements "a", "b", and "c" in my Schema defined as consecutive siblings, and in my document I have "a" and "c" and use form controls to edit them, I have no way to enter "b" between them.
Is this expected behavior? Am I missing some way to
(1) use form controls for a series of elements
(2) hide the text content from appearing outside the form control
(3) while still allowing me to select an element and insert a new element after it