Using Material Icons in CKEditor

Last updated on
3 November 2023

Adding the Material Icons button to the CKEditor toolbar

Go to Configuration > Content authoring > Text formats and editors. Select the text format you want the button to be available for (Full HTML, Restricted HTML, or Basic HTML) and click “Configure” next to this format.

Clicking “Configure” next to a text format

Find the Material Icons button in the “Available buttons” and drag-and-drop it to the “Active toolbar.”

 Dragging the Material Icons button to the “Active toolbar.”

Scroll to the bottom of the page and click “Save configuration.”

Adding Material Icons to content in CKEditor

Open a node editing form. If you want an icon to appear in a specific place in the text, click there. Next, click on the Materials Icons button on the CKEditor toolbar, and a dialog box will open.

Start typing the name of an object or a concept in the “Icon Name” field, and the relevant icon options will be appearing in the autocomplete dropdown. If you are unsure what to type, you could follow the link directly in the dialog box to the full list of icons with their official names.

Finding icons with the help of the autocomplete feature

Once you’ve seen the right icon in the search results, click on it so it gets selected.

Use the “Icon Type” dropdown to select the style family (the available styles will depend on the settings you’ve made on the “Configuring the available icon styles” page).

Optionally, add some CSS classes such as align-text-top, etc.

The dialog box with the icon name, icon type, and additional classes

Hit the “Insert icon” button at the bottom right corner of the dialog box and the selected icon will appear in the text area.

An icon added in the text area

Help improve this page

Page status: No known problems

You can: