Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

get current cursor position in TinyMCE Oracle Apex 23.1

amene khaliliJan 22 2024

I need to have current cursor position in TinyMCE Oracle Apex. I use this js code for another type of page items and it work correctly.

var curPos = document.getElementById("P7_TEXT").selectionStart;

but when "P7_TEXT" is a Rich Text Editor (TinyMCE) , it will return "undefined"

what can I do to get the current position of cursor in rich text page item?

APEX version is 23.1.

Comments
Post Details
Added on Jan 22 2024
2 comments
786 views