Hi there,
I've been tearing my hair out trying to figure out how to do this -
I'm using FCK to create an HTML Template editor which has Mail merge style replacement parameters. The Placeholders plugin is perfect for displaying and moving the parameters, but I'd like to be able to add the placeholders from a poplist without going through the plugin dialogue.
So far, I've figured out that I can use the FCK API to insert the parameter name into the HTML (with [[ ]] around it), but this bypasses the FCKPlaceholder.Redraw() logic, and the parameter just appears as editable text (i.e. it doesn't appear hilited and in a span). If I toggle the FCK Editors' display mode to text and back it appears fine.
Is there any way that I can programmatically add a placeholder to my FCK editor content without going via the placeholder dialog?
Thanks in advance,
Mike
I've been tearing my hair out trying to figure out how to do this -
I'm using FCK to create an HTML Template editor which has Mail merge style replacement parameters. The Placeholders plugin is perfect for displaying and moving the parameters, but I'd like to be able to add the placeholders from a poplist without going through the plugin dialogue.
So far, I've figured out that I can use the FCK API to insert the parameter name into the HTML (with [[ ]] around it), but this bypasses the FCKPlaceholder.Redraw() logic, and the parameter just appears as editable text (i.e. it doesn't appear hilited and in a span). If I toggle the FCK Editors' display mode to text and back it appears fine.
Is there any way that I can programmatically add a placeholder to my FCK editor content without going via the placeholder dialog?
Thanks in advance,
Mike
RE: Add a placeholder with javascript?