The only work around i found was to implement each independent text editors JavaScript API
So i got references from the major text editors:
- http://wiki.fckeditor.net/Developer's_Guide/Javascript_API
- http://cutesoft.net/developer+guide/javascript-api.htm
- http://freetextbox.com/demos/javascript.aspx
- http://www.telerik.com/help/radeditor/5.6/?r.a.d.editor%20Client-Side%20Events.html
And the JS looks something like this:
function storeDescFCK(ctx)
{
var oEditor = FCKeditorAPI.GetInstance(ctx + '_txtDescription_txtDescription');
dnn.setVar('Desc', oEditor.GetHTML());
}
function storeDescFTB(ctx)
{
dnn.setVar('Desc', FTB_API[ctx + '_txtDescription'].GetHtml());
}
function storeDescCute(ctx)
{
var oEditor = document.getElementById(ctx + '_txtDescription');
dnn.setVar('Desc', oEditor.getHTML());
}
function storeDescRad(ctx)
{
var oEditor = GetRadEditor(ctx + '_txtDescription');
dnn.setVar('Desc', oEditor.GetHtml());
}
And i do a dual js call on the onclick event (one is to implement on of these functions, the other is the callback. These two are separated by a ; ... ie: d be better if i didnt have to dig this deep. Any suggestions?