My requirement is, if author inputs content with anchor tags in the textarea field(tinymce), when i click on the plugin button, the postprocessor should add some custom parameters to the
tags only.
So if i enter below content in the HTML view of the Textarea and update it:
GOFor this I have created a custom plugin. This custom plugin is working for DCT's.
But the same is not working for SitePublisher components.
The "editor_plugin_src.js" file of the plugin is getting called. I verified by putting some alerts.
To set the the parameters I am using below code:
if (o.get) {
tinymce.each(ed.dom.select('a', o.node), function(n) {
n.setAttribute('parameters','[\'$CONTEXT{thisComponent.name}\']');
n.setAttribute('analyticclass','analyseLink');
});
}
The "setAttribute" is not working for SP components.