Hello,
I have created a plug that opens an iframe.
I have most everything working, when i click the OK button it calls onOk: function()
the part that i am missing, that i do not understand, is in the onOK function how do I get access to the
form vars in the iframe?
the code snippet looks like...
I have created a plug that opens an iframe.
I have most everything working, when i click the OK button it calls onOk: function()
the part that i am missing, that i do not understand, is in the onOK function how do I get access to the
form vars in the iframe?
the code snippet looks like...
CKEDITOR.dialog.add('voiceCastDialog', function (editor)
{
return {
title: 'VoiceCast browser',
resizable: 0,
expand: false,
minWidth: 450,
minHeight: 485,
contents:
[
{
id: 'iframe',
label: 'laabel',
expand: true,
elements:
[
{
type: 'iframe',
src: '/servlet/podcastServlet?jspURL=/ckeditor/plugins/voiceCast/plugin.jsp',
width: '100%',
height: '100%',
onContentLoad: function(){
console.log("onContentLoad");
}
}
]
}
],
onShow: function(){
console.log("onShow");
},
onOk: function(){
console.log("onOK");
Re: how to access iframe vars in a iframe dialog plugin
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!