Hi Dave,
I have implemented this is another platform and hoping to use it here (when my brain finally takes in all the new stuff here):
https://getsatisfaction.com/applicati...
The procedure will be different here but this might point you in the right direction.
I add an iFrame Widget and set its properties as follows: (the random thing ensures we get the latest version).
app.setProperty('iFrameItem','URL','http://www.wilsea.com/ckeditor2/edito...);
I get / set the property with
Code: Select all
var contextMenuId = 'iframe_' + app.w('iFrameItem').base()[0].id;
document.getElementById(contextMenuId).contentDocument.getElementsByClassName('cke_wysiwyg_frame')[0].contentDocument.body.innerHTML = itemData;
var newData = document.getElementById(contextMenuId).contentDocument.getElementsByClassName('cke_wysiwyg_frame')[0].contentDocument.body.innerHTML
I also had to set a timer event on the iframe load event so the iframe had loaded before entering data.
Code: Select all
setTimeout(function(){
var contextMenuId = 'iframe_' + app.w('iFrameItem').base()[0].id;
document.getElementById(contextMenuId).contentDocument.getElementsByClassName('cke_wysiwyg_frame')[0].contentDocument.body.innerHTML = itemData;
},3000)
Let me know how you go on.
Cheers
SteveW