Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CK Moon

No security coverage Under active development 21 sites

This module allows you to easily insert IcoMoon icons into your content using the WYSIWYG editor. It displays your available icons in a dialog and inserts the appropriate HTML for them.

Introduction

CK Moon provides the ability to embed icomoon fonts defined in your theme
into the wysiwyg.
The plugin will read the selection.json file provided by your icomoon pack and display the icons in a handy dialog for you to choose from.
An i tag will then be inserted into the wysiwyg with the relavent icon classname. eg: <i class="icon-arrow-right"></i>.

Requirements

CKEditor module.
Icomoon font, along with its generated selection.json file.

Installation

Install as you would normally install a contributed Drupal module.
See: https://www.drupal.org/node/895232 for further information.

Configuration

  • Drag the ckmoon button into the toolbar when configuring your text formater.
  • If "Limit allowed HTML tags" is enabled, ensure the <i> tag is in the list of Allowed HTML tags.
  • Configure the CKEditor plugin settings.
    • Add a path to the icomoon selection.json file, relative to your default theme directory.
    • Add any prefix you may have added to your icon classes.
  • In order for the icons to show in the wysiwyg, you must first include your theme style in the ckeditor_stylesheet settings in your themes info.yml file:
     ckeditor_stylesheets:
          - styles/css/main.css

Ask your assistant about CK Moon

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
3.0.x-dev Dev 8–10 Apr 22, 2024