Support FileField Insert with WYMeditor, to allow easy insertion of inline images and links to files.

CommentFileSizeAuthor
#1 wysiwyg-507608-HEAD.patch1.13 KBjfhovinne
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jfhovinne’s picture

FileSize
1.13 KB

The attached patch adds the needed Drupal.wysiwyg.activeId setting, and the Drupal.wysiwyg.editor.instance.wymeditor.insert function.

Inserting inline images works fine, using FileField Insert, ImageCache presets and Image Resize Filter.
Tested in MSIE 6.0, FF3, Opera 9.62 and Chromium 3 (so should work in Safari).

sun’s picture

Nice!

+Drupal.wysiwyg.editor.instance.wymeditor = {
+  insert: function(content) {
+    var $field = $('#' + this.field);

Uhm - where is this.field coming from? --- ah, I see, we preset all params in Drupal.wysiwygAttach for each instance ;)

Great! So all I need is someone to confirm that this patch works :)

sun’s picture

Status: Needs review » Fixed

Thanks for reporting, reviewing, and testing! Committed to all branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.