WYMeditor: support FileField Insert
jfh - July 1, 2009 - 21:17
| Project: | Wysiwyg |
| Version: | 6.x-2.x-dev |
| Component: | Editor - WYMeditor |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Support FileField Insert with WYMeditor, to allow easy insertion of inline images and links to files.

#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).
#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
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
Automatically closed -- issue fixed for 2 weeks with no activity.