${caret} ends up at wrong position

<oXygen/> general issues.
Martin de la Iglesia
Posts: 6

${caret} ends up at wrong position

Tue Aug 22, 2017 6:02 pm

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/>?
sorin_carbunaru
Site Admin
Posts: 111

Re: ${caret} ends up at wrong position

Wed Aug 23, 2017 10:09 am

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
Martin de la Iglesia
Posts: 6

Re: ${caret} ends up at wrong position

Wed Aug 23, 2017 10:41 am

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.
sorin_carbunaru
Site Admin
Posts: 111

Re: ${caret} ends up at wrong position

Wed Aug 23, 2017 10:51 am

Yes, it's weird. I recorded an issue for this.

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 1 guest