Icons

Overview

Icons are widely used and supported in the editor.

In every case mentioned before, you can set an icon of the supported li-icon collection. If your icon is not supported, you can register a material design icon.

Icon and Placeholder Collections

Livingdocs provides some icon collections, which you can use in your downstream.

  • material design icon collection (get the SVG here: https://livingdocsio.github.io/material-design-icons-svg/svg/<icon-name>.svg
  • design component icon collection (get the SVG here: https://livingdocsio.github.io/livingdocs-design-assets/docs/icons/component-icons/<icon-name>.svg)
  • li-icon collection
    • this is a subset of the material design icons embedded into the core via identifier
    • the SVG path of the li icons list can be loaded via window.materialDesignIconsSvgPaths in the browser console of the editor

Register a Material Design Icon

The editor supports some material design icons by default (list of supported icons). If you want to use another icon from the material design icon collection, you can add the icons to the editor config.

// all.js
{
  customIconNames: ['abugida-devanagari'],
}