Add: Format library to the widget screen.#15948
Conversation
| */ | ||
| import { render } from '@wordpress/element'; | ||
| import { registerCoreBlocks } from '@wordpress/block-library'; | ||
| import '@wordpress/format-library'; |
There was a problem hiding this comment.
Should we add the "package.json" and backend dependency?
There was a problem hiding this comment.
Hi @youknowriad, I changed the PR and applied the same approach used by edit-post. The format library is not imported and wp_enqueue* is used to load the scripts and styles. A package.json dependency was added as edit-post also contains it.
d826b0f to
7222446
Compare
|
Hi @noisysocks, nice catch the styles problem should be fixed now. |
| "@wordpress/block-editor": "file:../block-editor", | ||
| "@wordpress/components": "file:../components", | ||
| "@wordpress/element": "file:../element", | ||
| "@wordpress/format-library": "file:../format-library", |
There was a problem hiding this comment.
Yes, I think we should, I only added it because the edit-post also contained but I think we can also remove it from there. I created PR to do that #16034.
noisysocks
left a comment
There was a problem hiding this comment.
This is working great for me! ![]()
7222446 to
b4d14bf
Compare


Description
The PR just adds the missing format library to the widget screen.
How has this been tested?
I went to the widget block editor.
I added a paragraph and I verified I could see and use the format options e.g: Bold.