Skip to content Skip to sidebar Skip to footer

Change Ckeditor Iframe Dialog Url

I'm developing a ckeditor plugin. I have a iframe dialog like this: CKEDITOR.dialog.add( 'imageDialog', function () { return { title :

Solution 1:

I succeeded to do what I want! I added a onShow function to my dialog, containing:

this.definition.getContents('iframe').elements[0].src = iframeurl;

Solution 2:

I would assume the previous correct answer works for version 3 but anyone using version 4 - I found that this works;

this.definition.dialog.definition.contents[0].elements[0].src = iframeurl;

That line in the onShow : function() { } works at changing the iframe url. There may be a better way to do it but I didn't find it.

Post a Comment for "Change Ckeditor Iframe Dialog Url"