Problem/Motivation

The MarkItUp editor JS in the WYSIWYG module doesn't allow for icons provided by a custom module.

Steps to reproduce

Attempt to use the WYSIWYG MarkItUp BBCode module I've put into a sandbox. The YouTube button will not render, even though it's properly providing the icon path and file per the WYSIWYG API.

Proposed solution

Alter the markitup.js file that is included with WYSIWYG module to respect icon paths and files. Patch incoming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrbeeman’s picture

Patch attached.

jrbeeman’s picture

Status: Active » Needs review
redndahead’s picture

Issue summary: View changes

I created a patch here that will allow someone to create their own icon sets by using hook_wysiwyg_editor_settings_alter. It would be great if someone could help review it.

https://www.drupal.org/node/577258#comment-8922315

redndahead’s picture

Sorry duplicate post.

redndahead’s picture

FileSize
4.21 KB

This patch is based off of the patch in comment 32 of #397994: markItUp Markdown editor integration. It adds an info hook and a configuration form for adding iconsets. You can find an example module here: https://www.drupal.org/sandbox/redndahead/2295875

jrbeeman’s picture

Re-rolled patch against the latest related patch in #397994-34: markItUp Markdown editor integration.

jrbeeman’s picture

Re-rolled patch against the latest related patch in #397994-37: markItUp Markdown editor integration.