Use lexical with mark.js? #7741
Unanswered
SansPapyrus683
asked this question in
Q&A
Replies: 1 comment
-
|
If you can find or build a library that uses the new CSS Custom Highlight API then it will work because that does not change the structure of the DOM, otherwise it would be best implemented on the lexical document rather than the DOM. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm currently using lexical in an electron app, and a I've been wanting to implement a ctrl+f that includes the editor for some time with mark.js. That framework works by injecting
<mark>tags around query matches, but as Lexical sanitizes its contents nothing shows up.Is there a way to resolve this (by perhaps allowing only
<mark>tags in the inner HTML), or are there any alternative marking frameworks that don't use this insertion method?Beta Was this translation helpful? Give feedback.
All reactions