Font whitelist and clipboard.convert() #4301
Unanswered
TheEponymousBob
asked this question in
Q&A
Replies: 1 comment
-
Faceing the issues. I can not able to add any font in using next.js |
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
-
Should adding a font to one's whitelist be reflected in
clipboard.convert()
for HTML when dealing with style attributes? I'm trying to render HTML from a legacy app that saves fonts as, for example,<span style="font-family: roboto;">Hello</span>
.I've updated the font whitelist and verified that it is going in to the registry. But when I trace through the
convert()
code, I reachclipboard.matchAttributor()
, which checks a whitelist inSTYLE_ATTRIBUTORS
, and this does not seem to have been updated when the new font is registered.I've put this in a CodePen. The console will show that only the monospace font is being recognised. Uncommenting the last two lines should show that the roboto font has been registered.
Beta Was this translation helpful? Give feedback.
All reactions