-
Notifications
You must be signed in to change notification settings - Fork 320
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
Markdown button classnames can overlap with user-based classnames #493
Comments
This was brought up before in #465, but I am hesitant to make this change in the current (v2) version. Technically the class names aren't part of the public API and therefor shouldn't be breaking change, but they are very much a public part of the rendered element. I'm afraid it will break a lot of custom styling from users. |
Can it be optional? I can think of two way
{
name: "heading",
+ buttonClassName: "mde-heading",
action: EasyMDE.toggleHeadingSmaller,
className: "fa fa-header",
title: "Headers",
} Both ways are opt-in and not breaking changes. |
Good ideas! I think |
Scoping styles by prefixing it with The braking change of
to:
the previous styling of |
Hi @Ionaru, sorry to bother you. Is there any info on when we might expect a new version that would include opt-in prefixes? |
I'm having this issue as well. Bootstrap4 apparently has a class name conflict and sets 100% width on any elements with |
The |
@Ionaru Thank you. Can you tell me where is the next release expected to be released? |
2.18.0 has now been released and should be on npm in a few moments :) |
We got a report from one of our users that Markdown buttons are broken.
The original issue Megabit/Blazorise#4060
Basically, it seems that the class names that are used by this library can overlap with Bootstrap or with any other user classes. They are too generic with names
table
,bold
,italic
, etc.I have tried to change them dynamically after the MDE instance is created with the following code:
and it kinda works but not 100%. From what I can observe, the
.toolbar
is a global object, and any change to it changes all of the instances. If there are 5 editors on a page, a race condition happens, and one or two editors are rendered without the previously added"mde-"
prefix.My question is.
table
becomesmde-table
The text was updated successfully, but these errors were encountered: