9

I want to dynamically add UIElements to a dialog depending on the value of another uiElement..I believe what i need is defined here : http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.contentObject.html#add. unfortunately, there is no usage example..What object do i need to create to use this function? Ive tried dialog.add(), but this does not work? Can someone help me put here please? Thanks

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
oggiemc
  • 273
  • 2
  • 4
  • 12
  • by any chance did you manage to make it work ?? I am stuck exactly where you are and need to dynamically add text fields with onClick function of existing button in a dialog ... please let me know – a.atlam Sep 15 '14 at 14:42

1 Answers1

-3

You can do it by using the addUIElement method. http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.html#.addUIElement

CKEDITOR.dialog.addUIElement(typeName, builder)
Michael D. Irizarry
  • 6,186
  • 5
  • 30
  • 35