Preventing invalid content in Author view
Posted: Thu Oct 05, 2017 6:30 pm
I'm trying to figure out what the default behavior of Oxygen is and if I've broken something with a config or framework change.
If you're in Author view editing a DocBook 5.x document, say in the middle of a para, and press return to bring up the content completion thing, you're presented with a list starting with "Split para", then some recently used elements, then an alphabetically sorted list of elements valid at cursor's location. After all the elements valid at the cursor's location is a list of grayed out element names that are not valid at the current location. If you go ahead and try to insert one of these invalid elements, sometimes it lets you do the invalid thing, for example putting a para inside a para, and sometimes you get a dialog like the one below:
What is controlling this behavior? I assume the intent is to let users make the document temporarily invalid if they know what they're doing, but I'm wondering why sometimes the dialog appears and other times it doesn't. I haven't gotten it to appear in my framework customization, so I don't know if I've broken something, but I also don't know when it should appear and when it shouldn't.
Thanks,
David
If you're in Author view editing a DocBook 5.x document, say in the middle of a para, and press return to bring up the content completion thing, you're presented with a list starting with "Split para", then some recently used elements, then an alphabetically sorted list of elements valid at cursor's location. After all the elements valid at the cursor's location is a list of grayed out element names that are not valid at the current location. If you go ahead and try to insert one of these invalid elements, sometimes it lets you do the invalid thing, for example putting a para inside a para, and sometimes you get a dialog like the one below:
What is controlling this behavior? I assume the intent is to let users make the document temporarily invalid if they know what they're doing, but I'm wondering why sometimes the dialog appears and other times it doesn't. I haven't gotten it to appear in my framework customization, so I don't know if I've broken something, but I also don't know when it should appear and when it shouldn't.
Thanks,
David