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

BUG: Unable to remove Strike via selection toolbar #3047

Closed
BCleverly opened this issue Sep 24, 2020 · 3 comments
Closed

BUG: Unable to remove Strike via selection toolbar #3047

BCleverly opened this issue Sep 24, 2020 · 3 comments

Comments

@BCleverly
Copy link

Current version: 0.16.22

Are you able to reproduce the bug from the demo?

[x] Yes
[ ] No

What is the expected behavior?
Be able to apply and remove the Strike-through styling via the mini toolbar on a selection and remove it via the same process

What is the current behavior?
You're able top apply the styling via the mini toolbar, but you're not able to remove it once it's applied.

If you do all of this via the Style manager it works as intended as this applies it via CSS instead of wrapping it in a HTML element.

@Ju99ernaut
Copy link
Contributor

Ju99ernaut commented Sep 27, 2020

This is as a result of this change #2886, as a temporary fix you can use:

const rte = editor.RichTextEditor;
rte.add('clearFormatting', {
    icon: '<i class="fa fa-eraser"></i>',
    attributes: {
      title: 'Clear Formatting'
    },
    result: rte => rte.exec('removeFormat')
  });

This adds a button that removes all formatting tags.

@BCleverly
Copy link
Author

Thanks @Ju99ernaut - appreciate the help :)

@artf
Copy link
Member

artf commented Oct 10, 2020

Will be fixed in the next release

@artf artf added this to To do in Release v0.16.27 via automation Oct 10, 2020
@artf artf closed this as completed in 118bbac Oct 13, 2020
Release v0.16.27 automation moved this from To do to Done Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

3 participants