Split_element function
Posted: Mon Oct 07, 2013 1:44 pm
Hi,
I use the split_element function in a paragraph but it does not work inside a bold or italics text:
here is my java code:
Best Regards,
Idak,
I use the split_element function in a paragraph but it does not work inside a bold or italics text:
Code: Select all
<p>text text text text text <i><b>text (caret position) text text</b><i> text text </p>
Code: Select all
if ("p".equals(paragraphAtCaret.getName())
|| ("b".equals(paragraphAtCaret.getName()) && "p".equals(paragraphAtCaret.getParent().getName()))
|| ("i".equals(paragraphAtCaret.getName()) && "p".equals(paragraphAtCaret.getParent().getName()))
|| ("sup".equals(paragraphAtCaret.getName()) && "p".equals(paragraphAtCaret.getParent().getName()))) {
Object action = authorAccess.getEditorAccess().getActionsProvider()
.getAuthorCommonActions().get("XML_Refactoring/Split_element");
authorAccess.getEditorAccess().getActionsProvider().invokeAction(action);
}
Idak,