Manually call text highlighting with text to highlight #9603
-
Can text highlighting be called manually while specifying the text to highlight? If so, what would that look like? Essentially, I'm doing a POST and would need to call the text highlighting depending on what is sent with the form. At this point, a GET isn't feasible due to the huge amount of possible parameters that could overwhelm the querystring and cause an HTTP 414 (URI Too Long). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes it can be called manually, since v4.0.7 Basically, you can do this in JavaScript, calling the plugin manually, looks like this:
Key point is to manually trigger the plugin, passing it as an Object, including the |
Beta Was this translation helpful? Give feedback.
Yes it can be called manually, since v4.0.7
See this: Texthighlight plugin #6126
And this PR: Text Highlight: added support for arrays and added more test cases #6137
This comment states it still needs to be documented: #6126 (comment)
Basically, you can do this in JavaScript, calling the plugin manually, looks like this: