Fragment inside ClipboardFragmentInformation
Posted: Mon Feb 26, 2024 1:52 pm
When using the interface ClipboardFragmentInformation I asked myself how the fragment / serializeFragmentToXML is composed by Oxygen.
For example when copying a table cell in full tags author mode <entry>Hello</entry> only the textual information 'Hello' is inside the fragment.
When copying a title <title>Hello</title> the whole markup <title>Hello</title> is inside the fragment.
Is there a documentation about the copy/paste behaviour how Oxygen handles special cases?
Code: Select all
public void process(ClipboardFragmentInformation fragmentInformation) {
AuthorDocumentFragment frag = fragmentInformation.getFragment();
String xmlContent = authorAccess.getDocumentController().serializeFragmentToXML(frag);
...
}
When copying a title <title>Hello</title> the whole markup <title>Hello</title> is inside the fragment.
Is there a documentation about the copy/paste behaviour how Oxygen handles special cases?