In Author mode b-button will break paragraphs
Posted: Mon Feb 23, 2009 11:52 pm
Oxygen version: 10.0
Say you have DITA content
If in Author mode you highlight "second" and "third" as one range and click b-button to bold the text, the resulting XML will be invalid
Another use case for this is where you highlight all the columns in a table row and bold them, resulting in invalid DITA.
Would it be possible to implement this so that content is not split and then wrapped in a single b element, but rather (for the first example)
That is, "insert wrap element" instead of "break wrap element".
Another case where clicking the bold button fails is
If you try to bold "third", this will result in
As a user I'm not sure if I'd like (A) the bold to fail because b element is not available in keyword, or (B) break keyword to create
Say you have DITA content
Code: Select all
<p>first second</p>
<p>third fourth</p>
Code: Select all
<p>first <b>
<p>second</p>
<p>third</p>
</b></p>
<p> fourth</p>
Would it be possible to implement this so that content is not split and then wrapped in a single b element, but rather (for the first example)
Code: Select all
<p>first <b>second</b></p>
<p><b>third</b> fourth</p>
Another case where clicking the bold button fails is
Code: Select all
first <keyword>second third</keyword> fourth
Code: Select all
first <keyword>second <b>third</b></keyword> fourth
Code: Select all
first <keyword>second </keyword><b><keyword>third</keyword></b> fourth