Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This simple module adds code to allow a Media button to be added to the BUEditor.

Currently it just loads the relevant JavaScript libraries on hook_form_alter to allow a custom button to be added to BUEditor.

To get this to work, activate this module then go to admin/config/content/bueditor and edit your chosen editor profile. Add a button (or edit the existing image button) to use the following code
js: Drupal.media.BUE.insertMedia(E);");

That's all there is to it. Once this is added that button will open the media browser and allow the insertion of the media tags into the BUEditor textarea.

Project information