Kevin Flynn wrote:
>
> If I select a word in a paragraph, say "highlighted" in the following para
> element:
>
> <para>This word is highlighted.</para>
>
> And apply a styling element to it thus:
>
> <para>This word is <highlight>highlighted</highlight>.</para>
>
> Then change my mind, selected Ctrl-Z to undo it and apply a different style
> ("emph", say), what I'll actually get is this:
>
> <para><emph>This word is highlighted.</emph></para>
>
> because the undo function causes the selection to shift to the parent node
> of the originally selected text.
>
> Is it possible to make the undo function behave more like undo functions in
> other editors, and retain the original text selection?
Sorry but this is very difficult to implement due to the way XXE is
designed.