Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

add the ability to get and set html via the jQuery object


Project:FCKEditor Plugin
Version:1.2.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I found that by adding the following code to extend the jQuery object that you could better integrate the plugin with jQuery itself. This way you can create and alter the FCK Text editor via jQuery.

Example Usage
//create the fck editor
jQuery('#textareaSelector').fck();

//get the value for the instance just created
jQuery('#textareaSelector'). getFckHtml();
// extend $
//##############################
$.extend($.fn, {
getFckHtml: function(){
var editor = FCKeditorAPI.GetInstance($(this).attr('name'));
return editor.GetXHTML(true);
}
});

$.extend($.fn, {
setFckHtml: function(html){
var editor = FCKeditorAPI.GetInstance($(this).attr('name'));
editor.SetHTML(html);
}
});