-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Change the default tags for HTML5 support #1415
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
Comments
I'm impacted too but I got the luck to manage the issue from server side by forcing the This would not be case for everyone and many ones will be forced to disable this button... At least the I've tried this on client side but it did not worked: 'strikethrough', // Requires forced 'strike' tag rendering from server side to work
// none of 'tagNames' forms are not working, still not able to 'unstrike' the text
{
name: 'strikethrough',
// tagNames: ['del', 'strike'],
// tagNames: ['strike', 'del']
tagNames: ['del']
}, So as a dirty workaround I'll keep the forced I also confirm that the |
fixed in the new version |
@stefanpejcic actually I took a look at your commits (6522435 b7b39ab c5d455d) and they seemed to only change the tests files (which resulted in tests failing) but didn't modify the behavior. The CI was failing due to saucelabs errors (probably license expiry or API change): Now the CI is failing to due to changes you introduced: |
@stefanpejcic could you please explain me why you've used the See by yourself: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s, it's in the first chapter. The other issue is that I don't see any body writing a |
Can you please reopen this, as the commits only change the tests, and not the actual code. The place where the strikethrough tag is inserted is in |
@Jiab77 I agree with what you're saying. As the docs says: I'll create a PR changing the tests and making appropriate changing. Also, @alexghi I know our community was almost dead, due to Authors being busy and giving access to many people, but anyways, I want you guys to help me get this project up and working again! |
@alexghi I tried, and It seems the only way to resolve this is to add css As the execCommand [is Obosolete now too] has a command 'strikethrough' which wraps the content in And we can't change that, I guess[Tell me if we can!]. So the solution will be to add if statement which does something to add either Thoughts? For people wondering how execCommand works, check this! |
@ksorv I think I've managed the issue on my side so I can probably share the code somewhere? |
@Jiab77 you can share it on here, or anywhere you want, but do remember to share it. I want to clear this one out so we've passing tests. |
@Jiab77 anything? |
Uh oh!
There was an error while loading. Please reload this page.
I need to use the strikethrough button so I added this feature through the
toolbar
method. The problem is the selected text is surrounded withstrike
instead ofs
ordel
tag. As you know the strike tag is not supported in HTML5.How can I change the default tags?
Expected behavior:
<s>Text</s> or <del>Text</del>
Actual behavior:
<strike>Text</strike>
Link
Links:
unsoported strike tag,
JSFiddle demo
Versions
The text was updated successfully, but these errors were encountered: