godaddy-wordpress / godaddy-wordpress/coblocks

ISBAT Copy text to a new page/post and have the custom font face be copied over

Open
#2,354 0 comments 0 reactions 0 assignees View on GitHub
[Priority] Low [Type] Bug
Dominant language
JavaScript
Stars
794
Forks
142
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug:

When copying text that has a custom font face added (through the toolbar settings) and pasting into a new page or post - the custom font face does not come across - even though the settings are still in place.

I suspect that the inclusion of the font files isn't triggered if the inline font code is just pasted in - but not sure.

### To reproduce:

1. Add content to a page - and style some text (in headings or pargraphs) with a custom font family (using the Coblocks font toolbar setting).
2. Copy the blocks containing the text with custom font
3. Create a new page/post and paste in the content
4. Publish/Preview the page and view it.

### Screenshots

Source Content (Oswald typeface shown):
Screen Shot 2022-04-07 at 4 35 08 pm

Pasted Content (Oswald typeface set, but not displayed):
Screen Shot 2022-04-07 at 4 35 15 pm

CSS class included - but font not styled on front end:
Screen Shot 2022-04-07 at 4 37 59 pm

### Expected behavior:
I expect the pasted content should display formatted in the same way as the source content

### Isolating the problem:

- [x] This bug happens with no other plugins activated
- [x] This bug happens with a default WordPress theme active
- [x] This bug happens **without** the Gutenberg plugin active
- [x] I can reproduce this bug consistently using the steps above

### WordPress version:

### Gutenberg version:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.