react-rte
react-rte copied to clipboard
Customize link and history buttons
When I customize the toolbar I have this:
const toolbarConfig = {
INLINE_STYLE_BUTTONS: [
{ label: "Negrita", style: "BOLD" },
{ label: "Itálica", style: "ITALIC" },
{ label: "Tachado", style: "STRIKETHROUGH" },
{ label: "Código", style: "CODE" },
{ label: "Subrayado", style: "UNDERLINE" },
],
BLOCK_TYPE_BUTTONS: [
{ label: "Lista sin enumeración", style: "unordered-list-item" },
{ label: "Lista con enumeración", style: "ordered-list-item" },
{ label: "Cita", style: "blockquote" },
],
BLOCK_TYPE_DROPDOWN: [
{ label: "Normal", style: "unstyled" },
{ label: "Título Grande", style: "header-one" },
{ label: "Título Mediano", style: "header-two" },
{ label: "Título pequeño", style: "header-three" },
],
};
The code above works but when I try to customize link, history, and image buttons I cannot find out how to do it using toolbarConfig.
Any idea on how to achieve this?
+1
any help about it? I'm looking in docs also, but not found :(
You can try this
button[title='Link'], button[title='Remove Link'], button[title='Undo'], button[title='Redo'] { background: '#242729; }
The :disabled and :hover pseudo selector are also available.