Unable to remove an image placed inside of an editable field in restricted editing mode #15521
Labels
package:restricted-editing
release:potential-blocker
This issue potentially blocks the upcoming release (should be checked).
squad:core
Issue to be handled by the Core team.
support:2
An issue reported by a commercially licensed client.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
'insertImage'
and/or'uploadImage'
commands inrestrictedEditing
✔️ Expected result
You should be able to remove the image, as is the case when it's inserted somewhere in the middle of the editable field:
restricted-image-middle.mov
❌ Actual result
If the caret is at the beginning or end of the editable field, the image cannot be removed:
restricted-image-beginning.mov
❓ Possible solution
When the caret is placed at the beginning or end of the editable field, the image gets inserted outside of the
span
with therestricted-editing-exception
class. In this case, the markup can look like this:When the caret is placed somewhere in the middle of the editable field, the image is placed inside of the span and the markup can look like this:
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: