Download & Extend

WYMeditor: support FileField Insert

Project:Wysiwyg
Version:6.x-2.x-dev
Component:Editor - WYMeditor
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

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).

AttachmentSize
wysiwyg-507608-HEAD.patch 1.13 KB

#2

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 :)

#3

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.

#4

Status:fixed» closed (fixed)

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

nobody click here