${caret}
Posted: Thu Oct 08, 2015 1:52 pm
Dear Forum,
I am working on customizing the Author mode for working with text and an apparatus in TEI.
In a text fragment like this:
I would like select the word "Folge", and then replace "Folge" by the following code with one action:
So that the content of <lem> would be copied to <rdg>, just to make further editing a bit easier, because in many cases the difference is just one letter.
Furthermore, I would like the caret to appear within <rdg>, so that the editor can start typing right after inserting the lemma.
I tried a "SurroundWithFragmentOperation":
The insertion works correctly, but the caret is not positioned. Can anyone help?
I am working on customizing the Author mode for working with text and an apparatus in TEI.
In a text fragment like this:
Code: Select all
Eine Folge der traurigen Wendung
Code: Select all
Eine <app><lem>Folge</lem><rdg>Folge</rdg></app> der traurigen Wendung
Furthermore, I would like the caret to appear within <rdg>, so that the editor can start typing right after inserting the lemma.
I tried a "SurroundWithFragmentOperation":
Code: Select all
<app xmlns="http://www.tei-c.org/ns/1.0"><lem/><rdg>${caret}${selection}</rdg></app>