Replies: 4 comments 5 replies
-
@ZoltanZen Hi. I'll convert this to a discussion topic because it's not a feature request or a bug. |
Beta Was this translation helpful? Give feedback.
-
We keep the structure and data separate, so yes the initial value cannot be set through the dialog specification. Only Try running your As for the |
Beta Was this translation helpful? Give feedback.
-
So I tried many options. This is working, but only with a button after the dialog window created.
So when I press the setData button, the selectboxes value changed to "Option 3", but I need to start this funtion when the dialog window is created. Or I miss something? and there is easier method for dinamically fill a listboxes? |
Beta Was this translation helpful? Give feedback.
-
I am a little dissapoint about the result, but this is working well:
I know you have many todo, but if you have some time, can you implement in initialdate function, what can do dinamically fill data? And thanks for help. |
Beta Was this translation helpful? Give feedback.
-
I would like to initial value for the listboxes. But somehow I can't set the values.
This is the script:
I tried set the value when the selectbox created.
value: "3", // this isn't work
I tried set the value in initialData function.
, but only the selectbox2 get the desired value '3'.
So I found one answer, but I don't know how to use in my case.
The return value from editor.windowManager.open() is a Dialog Instance API, which has a setData method tiny.cloud/docs/ui-components/dialog/#dialogdataandstate github.com/tinymce/tinymce/issues/4765
Beta Was this translation helpful? Give feedback.
All reactions