react-rte icon indicating copy to clipboard operation
react-rte copied to clipboard

Customize link and history buttons

Open afmejia opened this issue 6 years ago • 3 comments

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?

afmejia avatar Apr 29 '20 16:04 afmejia

+1

tkatariya avatar Jun 08 '20 08:06 tkatariya

any help about it? I'm looking in docs also, but not found :(

darlanmendonca avatar Jan 20 '21 20:01 darlanmendonca

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.

kenneth-rebello avatar Feb 01 '22 14:02 kenneth-rebello