How can I apply lang attribute for selected nodes? #6344
Unanswered
mikkomikko
asked this question in
Q&A
Replies: 0 comments
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.
-
I'm adding a possibility to mark text with different languages. The user selects some text, chooses a language from dropdown menu and then a
langattribute with correct value should be applied (I believe) for selected nodes. I can't change the node completely since the html tags need to stay the same. Just add the lang attribute. Another option would be to create a wrapper component for selected nodes but it sounds tricky since it depends by the semantics of selected nodes if the wrapper should be a div or a span. What kind of Lexical concepts should I use here?Beta Was this translation helpful? Give feedback.
All reactions