dasaven wrote:Assign Default Values to dialog box fields?
Q: How do I change the contents of the xyz dialog? A: Look at the Api_dialog.html sample. Beware that some elements currently can't be removed due to limitations in the current code, but you can hide them.
Q: How do I set the default value for the xyz field in the zyx dialog? A: Look at the Api_dialog.html sample and set the default property for that field.
With the 'Image' dialog as an example, how do I assign default values to the fields (and then disable them)...?
I don't want my users to specify image size, padding, and alignment. How can I assign those fields the values I want and then disable them so the user cannot change the settings?
Also, I'd like to give the 'height', 'width', 'align' options in the 'image info' tab default values...
Funny that you mention I asked the same question three times, and never got an answer.... lol
There is no clear documentation as to field names in the image dialog box... I have tried EVERY combo I cant this of to specify default values for the 'advanced tab' STYLE field for instance. (txtStyle, txtstyle, TxtStyle, style, Style, Stylesheet, styleSheet, etc etc etc)
It doesn't follow the same convention as the 'info tab' (ie 'txtHSpace' ) so following the instructions for XYZ dialog box is of no use.
MOST IMPORTANTLY: A search of the forum for 'Image Dialog' doesn't give you results like XYZ Dialog... so the fact that I already searched the FAQ and didn't find my F'ing answers should not come as a surprise. And youd have to be a psychic in order to type in 'XYZ Dialog' when you are looking for IMAGE dialog.
So, Thanks again for absolutely nothing... and hiding a post that was very obviously justified... even when someone answers around here, they are of no help.
HONESTLY people, $1,000 + is a lot to spend to then spend 3 days trying to get help in the forums from ANYONE.
The closest I've gotten to help is "... look at the API_DIALOG.html sample "
Here it is:
CKEDITOR.dialog.add( 'myDialog', function( editor )
{
return {
title : 'My Dialog',
minWidth : 400,
minHeight : 200,
contents : [
{
id : 'tab1',
label : 'First Tab',
title : 'First Tab',
elements :
[
{
id : 'input1',
type : 'text',
label : 'Input 1'
}
]
}
]
};
} );
Where in this usefull tidbit does it say the names of the fields of the image dialog so that I can reference them and assign default values? It doesnt.
Is there no one here interested in just helping a guy out? I swear:
my first few posts (days ago) where very polite and friendly. I also messaged people who had asked similar questions months ago (and never got a response) in hopes that someone had messaged them the answer.
I'm not a dick... just crunched for time and getting nowhere fast.
Re: Scary how little support you get around here.
Re: Scary how little support you get around here.
There is no clear documentation as to field names in the image dialog box... I have tried EVERY combo I cant this of to specify default values for the 'advanced tab' STYLE field for instance. (txtStyle, txtstyle, TxtStyle, style, Style, Stylesheet, styleSheet, etc etc etc)
It doesn't follow the same convention as the 'info tab' (ie 'txtHSpace' ) so following the instructions for XYZ dialog box is of no use.
MOST IMPORTANTLY:
A search of the forum for 'Image Dialog' doesn't give you results like XYZ Dialog... so the fact that I already searched the FAQ and didn't find my F'ing answers should not come as a surprise. And youd have to be a psychic in order to type in 'XYZ Dialog' when you are looking for IMAGE dialog.
So, Thanks again for absolutely nothing... and hiding a post that was very obviously justified... even when someone answers around here, they are of no help.
Piss off.
Re: Scary how little support you get around here.
The closest I've gotten to help is "... look at the API_DIALOG.html sample "
Here it is:
CKEDITOR.dialog.add( 'myDialog', function( editor ) { return { title : 'My Dialog', minWidth : 400, minHeight : 200, contents : [ { id : 'tab1', label : 'First Tab', title : 'First Tab', elements : [ { id : 'input1', type : 'text', label : 'Input 1' } ] } ] }; } );Where in this usefull tidbit does it say the names of the fields of the image dialog so that I can reference them and assign default values? It doesnt.
Is there no one here interested in just helping a guy out? I swear:
my first few posts (days ago) where very polite and friendly. I also messaged people who had asked similar questions months ago (and never got a response) in hopes that someone had messaged them the answer.
I'm not a dick... just crunched for time and getting nowhere fast.
Re: Scary how little support you get around here.