app/assets/javascripts/ckeditor/_source/plugins/filebrowser/plugin.js in refinerycms-ckeditor-0.1.4 vs app/assets/javascripts/ckeditor/_source/plugins/filebrowser/plugin.js in refinerycms-ckeditor-0.2.0

- old
+ new

@@ -1,7 +1,7 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview The "filebrowser" plugin that adds support for file uploads and @@ -244,11 +244,11 @@ for ( var i in elements ) { element = elements[ i ]; - if ( element.type == 'hbox' || element.type == 'vbox' ) + if ( element.type == 'hbox' || element.type == 'vbox' || element.type == 'fieldset' ) attachFileBrowser( editor, dialogName, definition, element.children ); if ( !element.filebrowser ) continue; @@ -319,10 +319,9 @@ */ function updateTargetElement( url, sourceElement ) { var dialog = sourceElement.getDialog(); var targetElement = sourceElement.filebrowser.target || null; - url = url.replace( /#/g, '%23' ); // If there is a reference to targetElement, update it. if ( targetElement ) { var target = targetElement.split( ':' );