﻿/*
 * jQuery ixcore fckeditor 1.0.1
 *
 * Copyright (c) 2009 ixcore.corp.
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 */if(typeof FCKeditor=='undefined'){document.write('<scri'+'pt type="text/javascr'+'ipt" src="/js/fckeditor/fckeditor.js"></scr'+'ipt>')}var ___fckeditors={};(function($){$.fn.fckeditor=function(options){var settings=$.extend({customConfig:'/js/fckeditor/config.custom.js',type:'Article',basePath:'/js/fckeditor/',width:'100%',height:'300'},options||{});settings.targets=this.filter('textarea[id]');return settings.targets.each(function(){var $this=$(this);var oEditor=new FCKeditor(this.id,settings.width,settings.height);oEditor.Config['CustomConfigurationsPath']=settings.customConfig+'?'+(new Date()*1);oEditor.ToolbarSet=settings.type;oEditor.BasePath=settings.basePath;oEditor.ReplaceTextarea();___fckeditors[this.id]=oEditor})}})(jQuery);