[wp-meta] [Making WordPress.org] #6608: Enable Blocks for the Support Forums editor
Making WordPress.org
noreply at wordpress.org
Tue Dec 6 14:17:18 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 nextend_ramona):
Not sure if it's the best place, but the new block-based forum don't seem
to like "HTML code paste".
What I mean is that we have a documentation which contains code that we
sometimes copy to the forum for our users. Currently this fails. The codes
are formatted like so:
https://imgur.com/hgTyiJ2
The HTML is:
{{{
<pre class="prettyprint prettyprinted" style=""><span
class="pln">define</span><span class="pun">(</span><span class="pln">
</span><span class="str">'WP_DEBUG'</span><span class="pun">,</span><span
class="pln"> </span><span class="kwd">true</span><span class="pln">
</span><span class="pun">);</span><span class="pln">
</span></pre>
}}}
When I attempt to copy the visual of this HTML to a block at the new
forum:
https://test.wordpress.org/support/topic/testing-new-editor/
Nothing happens.
The console displays:
https://imgur.com/UcK7jxY
{{{
Received HTML:
<pre class="prettyprint prettyprinted" style=""><span
class="pln">define</span><span class="pun">(</span><span class="pln">
</span><span class="str">'WP_DEBUG'</span><span class="pun">,</span><span
class="pln"> </span><span class="kwd">true</span><span class="pln">
</span><span class="pun">);</span><span class="pln"></span></pre>
Received plain text:
define( 'WP_DEBUG', true );
Processed HTML piece:
<pre>define( 'WP_DEBUG', true );</pre>
}}}
But nothing gets inserted: https://imgur.com/dgyWQ0m
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/6608#comment:16>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list