[SOLVED]
This is my first custom plugin. I made a dialog using elements to create several elements on the page. Most of the elements are in a hbox or vbox for appearence.
So I made a select element, and populated it with options. In Firefox, the ID is cke_105_select and in IE11 the ID is cke_106_select
Below is ID in which I used ddl_partNumber but it doesn't seem to post or register on the element.
My question is, how may I use a static ID value, or a way to get the actual ID value, or keep tabs on the ID values. I prefer just a static ID value.
[FIX]
I thought about it last night, and if I was writing a basic dialog, in which I just plugin simple values, the original design of ckEditor would of done fine. But I made a dialog that generates a product listing template for email campaigns, that was very custom and self generating.
So I ditched the elements for type HTML, and just copied the cke_dialog_ui style or class names over to make it look the same, and found that the type HTML supports the onLoad event, in which I can load up the values. So now I have a static id value that can be used with jquery.
I like it, looks the same and does what I need.
type: 'html',
html: '<div class="cke_dialog_ui_select" style="width: 450px; vertical-align: bottom;" role="presentation">' +
'<span class="cke_dialog_ui_labeled_label" style="font-weight: bold;">Select your Part Number</span>' +
'</div>' +
'<div class="cke_dialog_ui_input_select" role="presentation">' +
' <select id="ddl_partNumber" class="cke_dialog_ui_input_select" style="width: 450px; vertical-align: bottom;" >' +
' <option value="-1">-- Select a Part Number</option>' +
' </select>' +
'</div>',
onLoad: function (a) {
jquery_load_productSKUS();
}
[SOLVED]
When using the onCommit, the var data, can I set the suffix name to anything I want?
like e.g. data.partNumber
[FIX]
I forget to add the data to the functon when I hand typed it
onCommit: function(data) {
}