Page 1 of 1

${caret} ends up at wrong position

Posted: Tue Aug 22, 2017 6:02 pm
by Martin de la Iglesia
Hi,

I'm new to the Author mode so I'm probably missing something obvious, but:
I've created an InsertFragmentOperation Action with the fragment

Code: Select all

<ab>
  <lb/>${caret}
</ab>

However, when I execute this Action, after the fragment is inserted, the cursor is now positioned before the <lb/> tag. How do I configure the Action so that the cursor is directly after the <lb/>?

Re: ${caret} ends up at wrong position

Posted: Wed Aug 23, 2017 10:09 am
by sorin_carbunaru
Hello Martin,

What version of oXygen are you using? I have tried on the 19.0 that I have installed and the caret was placed after "lb" in the Author page, as expected. However, when I switched to the Text page I noticed that the caret was indeed moved before "lb" (probably a bug). Is this what happens to you too, or does the caret end up in the wrong place even in the Author page?

Best wishes,
Sorin Carbunaru
oXygen XML

Re: ${caret} ends up at wrong position

Posted: Wed Aug 23, 2017 10:41 am
by Martin de la Iglesia
Thank you for looking into this, Sorin.
I'm using v. 17.1 and now that I've checked, I can confirm that it is indeed as you say: when I stay in Author mode, the caret is at the correct position; only when I switch to Text mode, the caret 'jumps' 5 characters to the left. So this problem isn't as bad as I thought and I can keep working in Author mode, but it's still weird.

Re: ${caret} ends up at wrong position

Posted: Wed Aug 23, 2017 10:51 am
by sorin_carbunaru
Yes, it's weird. I recorded an issue for this.