Unable to remove Strike via selection toolbar
This is as a result of this change #2886, as a temporary fix you can use: This adds a button that removes all formatting tags.
Read full answer below ↓Question
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.
Answers (3)
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.
Will be fixed in the next release
Thanks @Ju99ernaut - appreciate the help :)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3125
linear-gradient CSS does weird things to background-image
Version: 0.16.27 Are you able to reproduce the bug from the demo? [x] Yes [ ] No What is the expected behavior? When adding background-imag...
Issue #3316
The editor does not remove the dead script blocks
Version: 0.16.34 Are you able to reproduce the bug from the demo? [ ] Yes [x ] No As I understand the code import dialog skips all the HTML...
Issue #3457
Custom trait input not working
Hi @artf ! Version: 0.17.3 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? The input is create...
Issue #3681
Textable not working with extended text component
Version: 0.17.22 Are you able to reproduce the bug from the demo?[X] Yes[ ] No What is the expected behavior? Should be able to drop a text...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.