Create new element when user types where text is not allowed
Posted: Wed Apr 27, 2016 12:35 am
The default behavior of AuthorComponentSampleApplet when the user tries to enter text where text is not allowed is a warning message saying "Text is not allowed in element 'elementName' (element only or empty or fixed content)".
I'd like to customize the behavior in some elements so that a specific child element is automatically created for the user and text is entered in the child element. I would still like the warning message to appear for elements other than the one being customized.
How do I go about doing this if this is possible?
I'd like to customize the behavior in some elements so that a specific child element is automatically created for the user and text is entered in the child element. I would still like the warning message to appear for elements other than the one being customized.
How do I go about doing this if this is possible?