Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the channel, I have code in setRuntimeData to detect when a request is being made by looking for one of the above parameters. I then call connector(rd) to handle the request. Attached are connector.java and DownloadWorker.java that
handle these requests. The downloadworker that is created should be available to the channel when getName, getContentType and getInputStream are called in the channel.

...

In most cases, this code will return an XML file as response. The formats are explained on the FCKEditor site.

Adding Plugins

Adding plugins isn't well documented but I have created Comment plugin that works like sticky notes. Insert a note and comment and it will appear when the mouse passes over the stick pin. It is still a work in progress (editing of existing comments has been implemented and deleting one is a bit problematic) but it will demonstrate the process.

To install, unzip the attached comment.zip file and put in the fckeditor/editor/plugins directory. Put the following line in your myconfig.js file after FcKConfig.PluginsPath:

Code Block

FCKConfig.Plugins.Add( 'comment', 'en,it') ;

In ToolbarSets, at the tool "comment" to one of the arrays.