Hey guys..
I need to create a new combobox inside the editor for my project, like a "Font Size" or "Font" combobox. Which functions and classes i need to change?
In this combobox i need to control the onChange event, because when i change the value of the combobox a new value must be set in the editor.
Any help is welcome!
Thanks!
aline.ayres@gmail.com
I need to create a new combobox inside the editor for my project, like a "Font Size" or "Font" combobox. Which functions and classes i need to change?
In this combobox i need to control the onChange event, because when i change the value of the combobox a new value must be set in the editor.
Any help is welcome!
Thanks!
aline.ayres@gmail.com
RE: How to create a specific combobox ?
But i'm having problems with ie when fckeditor is loading it sends 2 alerts saying that " the toolbar item undefined is unknow". What's that mean?
I'm using the last config of the combo plugin an my ie version is 6.0.
Thanks advanced!
aline.ayres@gmail.com
RE: How to create a specific combobox ?
1. Add the following line
FCKConfig.Plugins.Add( 'mycombo' ) ;
2. Add the 'mycombo' item to your toolbarset. Eg:
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'],
['mycombo']
] ;
Secondly, clear your browser cache and refresh the page. It could be the javascript is being cached.
RE: How to create a specific combobox ?
Suggestions and discussions are welcomed.
Thanks advanced!
aline.ayres@gmail.com
RE: How to create a specific combobox ?
My only issue is that i need to set a width on the options that drop below it because my content is wider than drop down..
How do i do that ?
Tks much
RE: How to create a specific combobox ?
1) in the fckplugin.js, in the function that sets these - this.Command=?; this.CommandName=?; this.Label=?; this.Tooltip=?; this.Style=? - you can specify the following widths as a number:
this.FieldWidth=130;
this.PanelWidth=200;
2) set the width of the <span> when adding the items:
this._Combo.AddItem('Item 1 text to insert', '<span style="color:#000000;font-weight:normal;font-size:10pt;width=">Item 1</span>');
RE: How to create a specific combobox ?
The Panel and Field Width worked!!! Tks so much..
Do you know if you can set X number of options ?
IE:
this.PanelLength=10 //Set the number of options to 10
Yes I know this does not work.. LOL
RE: How to create a specific combobox ?
Take a look at the combo plugin here: http://sourceforge.net/tracker/index.ph ... tid=737639
RE: How to create a specific combobox ?
What happens when there are new releases of FCK editor..
is this mod supported.. i mean is this the way FCK (Fred and his team)
are doing this now? I just dont wanna loose my chagnes..
RE: How to create a specific combobox ?
I try to keep with the latest version so if an upgrade causes problems I will endeavor to fix them. This might not be the most timely process mind you.
Re: How to create a specific combobox ?
Reallly thanks bro, i am finding it since from last three days thanks to all of u for ur great help.