Hi There,
In VFE, I can add my own button and write the functionality for the button using formAPI (in my global js file located under templatedata/ContentTypes).
Example:
top._dcWin.eWebEditProExecCommandHandlers["jsdevariable"] = function(sEditorName, strCmdName, strTextData, lData)
{
//top._dcWin.eWebEditPro.instances[0].asyncCallMethod("pasteHTML", ["hi"], null, new Function());
//alert("Hi");
var server = window.location.hostname;
var vpath = IWDatacapture.getWorkarea();
targetUrl="/iw-bin/iw_cgi_wrapper.cgi/get_DEvariable_groups.ipl?vpath="+vpath;
windowName = "dynamic_form";
windowFeatures = "scrollbars=yes,width=450,height=300,resizable=yes,status=1";
window.open(targetUrl, windowName, windowFeatures);
}
function set_DE(itemVal)
{
var tagVal = "${"+itemVal+"}";
top._dcWin.eWebEditPro.instances[0].asyncCallMethod("pasteHTML", [tagVal], null, new Function());
window.close();
}
Now is there any similar way for Tiny MCE. I want to create a button (I know how to do this) and add functionality in the global.js file.
Any help is highly appreciated.