Skip to content
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

Copy and Paste from Word is not persisting the Font #4828

Open
andravenBG opened this issue Oct 16, 2024 · 0 comments
Open

Copy and Paste from Word is not persisting the Font #4828

andravenBG opened this issue Oct 16, 2024 · 0 comments

Comments

@andravenBG
Copy link

andravenBG commented Oct 16, 2024

Expected behavior.

Pasting text from Word should retain the font of the original text
Note: This was working on older versions like 2.7.2

Actual behavior.

Pasting text from Word set the font to Calibri. Despite having all these options:

      pasteAllowedStyleProps: ['font-family', 'font-size', 'color'],
      pasteDeniedAttrs: [],
      pastePlain: false,

And despite pressing "Keep" on the modal that asks if you want to keep the formatting.

Steps to reproduce the problem.
  1. Have some text in Word with a specific font like Bauhaus 93 for example
  2. Copy the text from Word and paste it to Froala
  3. Observe that the font is different.
Editor version.

I'm running Froala version 4.3.0

OS.

Windows 11

Browser.

Chrome, Version 129.0.6668.100

Recording.

This showcases the issue on Froala version 4.3.0

10-16-2024 (14-15-04)

Here we can see, a working example which is on version 2.7.2 (https://codepen.io/Javeria_Anwer/pen/XVLXmP)

10-16-2024 (14-16-37)

And here I'm showing just for reference a working example of another editor (Kendo)

10-16-2024 (14-18-11)

I'm also sharing the Word document I use for testing:

test.docx

@andravenBG andravenBG changed the title Copy and Paste from word is not persisting the font family Copy and Paste from Word is not persisting the Font Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant