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.

Comments

jrbeeman’s picture

StatusFileSize
new1002 bytes

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

StatusFileSize
new4.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.