I’m building a CKEditor 3.x plug-in that allows certain sections of HTML to be conditionally displayed by a separate viewer application that is tied in to our back-end systems. My CKEditor plug-in will be used to define these conditions, but I’m getting stuck on how to dynamically add UI elements to the plug-in dialog.

After I select the ‘AND’ option in the last select UI element (see the screenshot), I want to dynamically add another 3 select UI elements, similiar to the first 3 select’s.
I’ve trawled through this forum and the plug-in tutorials and I haven’t been able to figure it out. All the examples I looked at only have static dialog definitions. Any help with this would be appreciated.
As Denis Volovik mentioned, this can be achieved using an Iframe with an external page. This is exactly what I did a while ago to resolve my issue. Apologies for only posting it now, but here is some skeleton code of how I accomplished this: