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

jfh - July 1, 2009 - 21:25

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

sun - July 2, 2009 - 19:00

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

sun - July 4, 2009 - 11:07
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

System Message - July 18, 2009 - 11:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.