[wp-meta] [Making WordPress.org] #6608: Enable Blocks for the Support Forums editor
Making WordPress.org
noreply at wordpress.org
Fri Dec 2 04:56:06 UTC 2022
#6608: Enable Blocks for the Support Forums editor
----------------------------+---------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone:
Component: Support Forums | Resolution:
Keywords: |
----------------------------+---------------------
Comment (by dd32):
I've been unable to spot how to add a filter on the pasted data. Perhaps
someone with more Gutenberg experience will be able to.
My thought was that if the pasted content matched
[https://github.com/WordPress/wordpress.org/blob/trunk/wordpress.org/public_html
/wp-content/themes/pub/wporg-support/js/forums.js#L25-L63 the existing
rules] to auto-wrap it into a `wp:code` block, or, to prompt the user with
something like `Select what to do with your paste: Insert a log (code
block); Insert a code block (code block); Just insert (default Gutenberg
behaviour)`
However, I spotted https://github.com/WordPress/gutenberg/issues/38064
which is going to be an issue on the forums.
> Pasting `Add width and height attributes to <img> elements`
> results in `Add width and height attributes to elements`
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/6608#comment:8>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list