-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy / Paste error core/paragraph using InnerBlocks #12774
Comments
This is exactly the issue I'm facing right now. @squibbleFish Were you able to resolve this? Looks like |
Having the same issue in WordPress 5.1.1. No resolution yet... |
@youknowriad @aduth @ellatrix Could you guys please do something about this bug? |
In my case, it seems that removing I've worked around the limitation by using CSS in the block's editor stylesheet to hide all of the controls that would allow the user to move blocks around or insert new ones. Not ideal, obviously, but works for me for now. Edit for clarity: <div className="slide-content">
<InnerBlocks
template={[
['core/heading', { placeholder: 'Slide heading...', level: 2, className: 'slide-title' }],
['core/paragraph', { placeholder: 'Slide content...', className: 'slide-text' }],
['custom/button', { text: 'Read More', btnClass: 'btn-filled', className: 'btn-lg' }]
]}
// templateLock="all"
/>
</div> And in the SASS file that produces the editor CSS: .slide-content {
.editor-block-list__insertion-point,
.editor-block-mover,
.editor-default-block-appender {
display: none !important;
}
} |
@jorgefilipecosta Given the relation to |
Hi @aduth, |
Describe the bug
Using
InnerBlocks
with a nested block template, you can not copy / paste inside of thecore/paragraph
block. It results in a console error and the text is not copied into the blockcore/heading
works fine. If I begin typing in thecore/paragraph
and then copy / paste, the new text is added without the console error.To Reproduce
Add a custom block that uses
InnerBlocks
with a template that includescore/pargraph
. Something likeExpected behavior
core/paragraph
should not have issues with copy / paste when used inside of a nested blockDesktop (please complete the following information):
Additional context
Gutenberg version 4.5.0
The text was updated successfully, but these errors were encountered: