alloy editor
  • Docs
  • Updates
  • Develop
    • About
    • Build it
    • Create
    • Create Buttons
    • Create Skins
    • Create Toolbars
    • Create entirely new UI
  • Use
    • Basic use
    • How to use it?
    • Creating a React component
    • How to use CKEditor Plugins?
    • Editor Configuration
    • Toolbar configuration
    • Button configuration
    • Read only mode
    • Skins
  • Features
    • Quote
    • Bold
    • Code
    • Horizontal Line
    • Heading 1
    • Image Alignment - Center
    • Heading 2
    • Image
    • Image Alignment - Left
    • Image Alignment - Right
    • Indent and outdent block content
    • Link
    • Link AutoComplete
    • Italic
    • Text Alignment - Centered
    • Text Alignment - Left
    • Text Alignment - Justified
    • Camera
    • Strike
    • Remove Format
    • Text Alignment - Right
    • Styles
    • Superscript
    • Subscript
    • Table
    • Table - Cells
    • Table - Columns
    • Lists (Numbered)
    • Table - Heading
    • Table - Remove
    • Table - Rows
    • Underline
    • Twitter
    • Lists (Bulleted)

Create Skins

AlloyEditor bundles a couple of gorgeous skins that you can use out of the box. However, if you would like to have a skin that reflects your app's look and feel, you can create your own skin.

Create skin folders

Create a new directory under src/ui/react/assets/icons/ with the name of your skin (e.g zebra). This directory will contain all the required icons for your skin.

Create a new directory under src/ui/react/assets/sass/skin with the name of your skin (e.g zebra). This directory will contain the styling for the skin.

Note: You can use our Skin Architecture to simplify the process of creating your own skin!

Create your skin

Place the icons for your skin inside your skin's svg folder. The icons placed in this folder are combined with the existing icons to generate your skin's icon font.

Create a main.scss file inside your skin folder. Add the styles to this file to create the overall look and feel for your skin.

Build the editor

Follow the instructions in our How to build it guide to learn how to modify and build AlloyEditor. Your skin is automatically read when you build AlloyEditor:

gulp [build]

Use your skin

Add your skin's CSS file to the page. This overrides the default skins:

<link href="alloy-editor/assets/alloy-editor-zebra-min.css" rel="stylesheet">

There you have it. AlloyEditor has a new beautiful look and feel!

Liferay.com