isCursorIsInTable Property.

Hello ,

How can i get that is cursor is in table or not.

i have adapted this approach but i can't stick on that because it select table first .

-->

this.editorObj.documentEditor.selection.selectTable();
this.isCursorIsInTable = this.editorObj.documentEditor.selection.isTableSelected();

1 Reply

DS Dhanush Sekar Syncfusion Team September 11, 2024 11:18 AM UTC

Hi Yogesh,


You can utilize the contextType API within the selection module to determine whether the current cursor is positioned in the table. Please refer the below sample and video for reference.

Sample:  8kdaxw (forked) - StackBlitz


Regards,

Dhanush S


Attachment: ContextTypeAPI_(1)_b1fe2914.zip

Loader.
Up arrow icon