RELEASE 2.3.0 OR ABOVE
Load the text information that corresponds with the given regular expression from Synap Editor.
|regex||Object||Regular expression for the text to load|
|Array||paragraph id of the paragraph in which the text is located and the text|
Sample of Inserting a Bookmark through getTextByRegex
Move the caret using "setCaretById" Selection API that moves the caret based on the paragraph ID and insert the bookmark using "insertBookmark" bookmark inserting EDIT API, with the text found by the regular expression as the bookmark ID.
- You may create a table of contents hyperlinks using the generated bookmarks.