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
Describe the bug
If you create a template lock like this:
$args = [ 'template_lock' => 'all', 'template' => [[ 'core/paragraph' ]], ];
It is impossible to add new lines in the paragraph. In non-locked paragraphs, you can add <br> by pressing Shift+Return
<br>
Shift+Return
To reproduce
template_lock = 'all'
template= [[core/paragraph]]
Return
Expected behavior
I expect a new line to appear when I press Return or Shift+Return
Screenshots
Editor version
Desktop
The text was updated successfully, but these errors were encountered:
fix WordPress#22550 and allow enter to insert line breaks in richtext
8a0d7f2
a340ca4
47dabf0
fix #22550 and allow enter to insert line breaks even if template is …
6e29088
…locked (#23330) * fix #22550 and allow enter to insert line breaks in richtext * add e2e test * Restore isSelected condition Co-authored-by: Ella van Durpe <ella@vandurpe.com>
No branches or pull requests
Describe the bug
If you create a template lock like this:
It is impossible to add new lines in the paragraph.
In non-locked paragraphs, you can add
<br>
by pressingShift+Return
To reproduce
template_lock = 'all'
, andtemplate= [[core/paragraph]]
Return
andShift+Return
Expected behavior
I expect a new line to appear when I press
Return
orShift+Return
Screenshots

Editor version
Desktop
The text was updated successfully, but these errors were encountered: