Sha256: a03138ccdf6576cf83c86147d2de5b02031ca5ebba059fce3224bd7b96771f3c

Contents?: true

Size: 538 Bytes

Versions: 11

Compression:

Stored size: 538 Bytes

Contents

// CKEditor plugin configuration

function addQueryString( url, params ) {
	var queryString = [];
	if (!params) return url;
	else {
		for (var i in params) queryString.push(i + "=" + encodeURIComponent( params[i]));
	}
	return url + ( ( url.indexOf( "?" ) != -1 ) ? "&" : "?" ) + queryString.join( "&" );
}

// load external plugins
CKEDITOR.plugins.addExternal('MediaEmbed', '<%= asset_path('ckeditor-contrib/plugins/MediaEmbed/') %>');
CKEDITOR.plugins.addExternal('richfile', '<%= asset_path('ckeditor-contrib/plugins/richfile/') %>');

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rich-1.4.6 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.4.5 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.4.4 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.4.3 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.4.2 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.4.1 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.4 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.0.3 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.0.2 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.0.1 app/assets/javascripts/rich/editor/rich_editor.js.erb
rich-1.0.0 app/assets/javascripts/rich/editor/rich_editor.js.erb