/* * elFinder Integration * * Copyright (c) 2010-2018, Alexey Sukhotin. All rights reserved. */ // $Id: elfinder.yui.js,v 1.1 2010/10/06 09:44:51 ph0enix Exp $ (function($) { Drupal.elfinder.editor.yui = { fn: { attach: Drupal.wysiwyg.editor.attach.yui } } Drupal.wysiwyg.editor.attach.yui = function(context, params, settings) { $('#' + params.field).parent().addClass('yui-skin-' + settings.theme); // Attach editor. var editor = new YAHOO.widget.Editor(params.field, settings); editor.on('windowInsertImageRender', function(e) { var dialogcode = $('#' + params.field + '-panel'); //var oImgHtml = $('