Skip to content
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

The quote icon is removed along with the text if the quote is the first in a line in the editor #6186

Open
fredure opened this issue Nov 5, 2020 · 2 comments

Comments

@fredure
Copy link

fredure commented Nov 5, 2020

What is the current behavior? Describe the bug
The quote icon is removed along with the text if the quote is the first in a line in the editor.

Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.

  1. Insert quote into editor;
  2. Select the entire text of the quote with the mouse;
  3. Press "backspace".

Codepen: https://codepen.io/fredure/pen/vYKaaax

Actual result:
Nov-05-2020 18-56-49

Expected Result:
Nov-05-2020 18-57-26

What is the expected behavior?
The text has been deleted, the quote icon remains.

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?
Version: 5.2.0 (2020-03-14).
Browsers: all.
OS: all.

@ashfordneil
Copy link
Contributor

This is intended behaviour, as it's how all our block level elements behave when you select them and hit backspace. As an alternative, if you delete the text by pressing backspace when the cursor is at the end of the text, you will be able to remove the text without deleting the block level element (press backspace one extra time at the end to remove the block itself, if desired).

If you'd like, we can make a feature request to support this behaviour (under a setting) and pass that along to the product team for evaluation.

@tiny-stale-bot
Copy link
Collaborator

This issue is stale because it has been open 365 days with no activity. Please comment if you wish to keep this issue open or it will be closed in 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants