I want to code a plugin for FCK to change the behaviour of how FCK handles some code:
I already coded a plugin that strips some special texts from extra p|div tags, but it hooks on 'OnAfterSetHTML' event and then RegEx searches the text and then replaces it. I will be able to actually do almost everything with text, but I don't like this approach. I want to control the FCK little bit more, not change everything after FCK does its changes. Is it possible to program something more efficient and if, where should i hook my code?
And I don't know how to add behaviour to some tags (when switching from source view and back). I was searching through the FCK source and found 'FCKXHtml.TagProcessors' object. Is this where I should add some functions that would alter the behaviour?
Any guidance will be appreciated
Best regards,
Peter
- Wraping everything in p|div tags. I want actually for some of my texts, tags not to be wrapped inside p|div.
- Adding some special behaviours for tags like <code> and stuff.
- Striping some attributes from tags and also tags itselfs.
I already coded a plugin that strips some special texts from extra p|div tags, but it hooks on 'OnAfterSetHTML' event and then RegEx searches the text and then replaces it. I will be able to actually do almost everything with text, but I don't like this approach. I want to control the FCK little bit more, not change everything after FCK does its changes. Is it possible to program something more efficient and if, where should i hook my code?
And I don't know how to add behaviour to some tags (when switching from source view and back). I was searching through the FCK source and found 'FCKXHtml.TagProcessors' object. Is this where I should add some functions that would alter the behaviour?
Any guidance will be appreciated
Best regards,
Peter