-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Is there any way to give custom tooltip text to toolbar ? #213
Comments
@IntelligaiaVivek Welcome to submit PR, modify the tooltip import React from "react";
import MDEditor, { commands } from "@uiw/react-md-editor";
export default function App() {
const [value, setValue] = React.useState("**Hello world!!!**");
return (
<div className="container">
<MDEditor
value={value}
commands={[
{
...commands.bold,
buttonProps: { title: "Test Title" }
}
]}
onChange={(val) => {
setValue(val!);
}}
/>
</div>
);
} |
Thanks for this Wonderful 'react-md-editor' Awesome |
There is an issue with commands.link. I can not override the value as expected. It still returns default value
|
@cmldk please give your example |
This was my first example when I was commenting on this. I was trying to create custom markdown commands. @jaywcjlove
After considering the problem, I found out why this happens.
Thanks |
@IntelligaiaVivek Upgrade |
Thanks @jaywcjlove for the updates |
Can we give custom tooltip text to toolbar like we have buttonProps: { "aria-label": "Insert bold text", "titile": "Insert bold text" } for group but needed for
single command.
example:-
commands.bold
tooltip text "Insert bold text"
The text was updated successfully, but these errors were encountered: