This is a question I can't find an answer to in the forums or docs, I'm sure it's due to my lack of knowledge. Here is my problem:
I have created several templates, once a user selects a different template, how can I get the FCKEditor to substitute portions of the template text? So, when a user clicks on a template and the fckEditor's value is replaced by that templates' xml, I would like to then, capture that event, so that I can replace text contained in that templates' xml (i.e. the users name, today's date, their DNA code...well not that, but you get the idea)
Here’s what I’ve done thus far:
function FCKeditor_OnComplete(editorInstance) {
editorInstance.Events.AttachEvent('OnAfterSetHTML', myFunction);
};
This works, sort of. This event actually allows me to capture the text and manipulate it; however, this event occurs BEFORE the template xml populates the FCKEditor. So any changes I make at this point, will be overwritten by the template populating the FCKEditor. What I need to know, I think, is what event is fired AFTER the template populates the FCKEditor?
Thanks in advance, I really love this product!
I have created several templates, once a user selects a different template, how can I get the FCKEditor to substitute portions of the template text? So, when a user clicks on a template and the fckEditor's value is replaced by that templates' xml, I would like to then, capture that event, so that I can replace text contained in that templates' xml (i.e. the users name, today's date, their DNA code...well not that, but you get the idea)
Here’s what I’ve done thus far:
function FCKeditor_OnComplete(editorInstance) {
editorInstance.Events.AttachEvent('OnAfterSetHTML', myFunction);
};
This works, sort of. This event actually allows me to capture the text and manipulate it; however, this event occurs BEFORE the template xml populates the FCKEditor. So any changes I make at this point, will be overwritten by the template populating the FCKEditor. What I need to know, I think, is what event is fired AFTER the template populates the FCKEditor?
Thanks in advance, I really love this product!
Re: Substitute text dynamically, when changing templates...how?