Title on toolbar icon
0length opened this issue Β· comments
Bernardus Fajar Junior Lewoeleng commented
Hi! π
I just want to add title props on toolbar icon, if needed
Firstly, thanks for your work on this project! π
Today I used patch-package to patch mui-rte@2.0.1
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/mui-rte/dist/components/ToolbarButton.js b/node_modules/mui-rte/dist/components/ToolbarButton.js
index 9c6d29a..87beabf 100644
--- a/node_modules/mui-rte/dist/components/ToolbarButton.js
+++ b/node_modules/mui-rte/dist/components/ToolbarButton.js
@@ -29,6 +29,7 @@ var ToolbarButton = function (props) {
props.onClick(props.style, props.type, elemId, props.inlineMode);
}
},
+ title: props.label,
disabled: props.disabled || false
};
if (props.icon) {
This issue body was partially generated by patch-package.