[wp-trac] [WordPress Trac] #60623: Richtext : "multiline=p" property is not working in latest WP version
WordPress Trac
noreply at wordpress.org
Fri Feb 23 11:27:19 UTC 2024
#60623: Richtext : "multiline=p" property is not working in latest WP version
--------------------------+-----------------------------
Reporter: kushang78 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.4.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
== **Issue:**
I'm facing issues with the **Richtext component** When I'm used
**"multiline=p"** property in latest WP version - 6.4.3.
== **The scenario I've:**
I've one custom GB slider block that includes some Richtext for contents,
Gallery for images and links as multi-level functionality.
**Multi-level functionality:**
**''On click of Plus Button,''** The slider will increase by one with all
the empty/placeholder contents & components.
**''On click of Minus/Remove Button,''** The current active slider will
remove completely.
After updating WP to the latest version the **"multiline=p"** property not
working properly. I don't know why this is happened. But, I've many posts
to depends on the **"multiline=p"** property, Because using this property,
The contents of the slider's automatically converted all the copied
heading tags & List items into different paragraph tags. But, Now in
latest WP version, When I added copied contents, It's throw the content
like {{{[object Object]}}}.
In other hand, I've some document files ready for this slider's content so
I just copied all the contents from that document file and added here in
this block.
== **The Error:**
WP says please use Innerblocks instead of Richtext property
**"multiline=p"**. Please check the attached file for this deprecated
error.
== **The Code Example:**
{{{
<RichText
tagName="p"
placeholder={__('Heading', 'mysite')}
value={heading}
onChange={heading => setAttributes({ heading })}
multiline="p"
/>
}}}
== **The Solution I tried:**
I tried and used the Innerblocks for this, And It's not working properly
for my custom slider block as before.
So, If anyone have solutions/feedbacks/suggestions for this, Please let me
know.
Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60623>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list