-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font family not getting changed correctly, when content is copied from a google doc #4629
Comments
Unless the particular font that is used in Google's, or even another Word type document is referenced within the styling of the web page document, then it won't be used. This, essentially, is not a Summernote issue. Please keep in mind that each Browser on each Operating System only has access and uses specific Fonts, and using other Fonts that are not classified as "Web Safe", need to be referenced, or they won't show up within the rendering of web page document. |
This is an example content from google doc (in CODE VIEW): <p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:12pt;font-family:Arial,sans-serif;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Hope you're doing well. </span></p><p><span style="background-color: transparent; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 12pt; white-space-collapse: preserve;"><br></span></p><p><span style="background-color: transparent; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 12pt; white-space-collapse: preserve;">test. </span><br></p> After change the font family, the result is like this: This basically looks like a selection issue in Summernote. I selected all text from 'end most character' to 'start character'. If you want to reproduce, please copy paste above content in 'code' mode, and switch back to 'non code' mode.. then select two line from bottom to top.. change the font family to something else.. |
@chamidu-supeshala, you are right. The code is legal, and SN doesn't work as intended. We branched out of SN years ago. I check every new SN issue in our version. We don't have this issue. |
@chamidu-supeshala it may be possible that the Summernote styling for inside the editing area is overriding the inline styling as it most likely uses the |
The result of changing the whole content to The same in 1der1: |
@diemendesign Even after cleaned using clear plugin, the issue is still there. @1der1 Is your forked version free to use? How can I access it? |
@chamidu-supeshala, go to https://1der1.com/ and click the "Start" button. 1der1 is forever free to use. You are welcome to try every issue. |
Any update of this issue? i'm having the same trouble when i'm trying to change de font size too. |
UPDATE: There's an another issue related to bullets and numbering on copy pasted content. I have logged it here: @DennisSuitters Highly appreciate if you can have a look into these issues. Thanks! |
Checklist
Steps to reproduce
Expected behavior
The new font should be applied to all the selected text
Current behavior
The new font will be applied only to first line
Minimal example reproducing the issue
No response
Environment
The text was updated successfully, but these errors were encountered: