This is a migrated thread and some comments may be shown as answers.

RadEditor: ClassName dropdown and backgroud color button

4 Answers 67 Views
Editor
This is a migrated thread and some comments may be shown as answers.
ghini
Top achievements
Rank 2
ghini asked on 21 Jan 2015, 08:25 AM
Hello everyone,
I'm configuring the RadEditor and I can't do these two things:
1) Node Inspector: customize the list of CSS classes visible in the dropdown "CLASSNAME" or hide the dropdown "CLASSNAME"
2) Toolbar: create a custom button to change the background color of the text

Thanks

4 Answers, 1 is accepted

Sort by
0
ghini
Top achievements
Rank 2
answered on 21 Jan 2015, 08:31 AM
My Telerik version is 2014.3.1024.45
Thanks
0
Ianko
Telerik team
answered on 23 Jan 2015, 03:25 PM
Hello Ghini,

The Css Class dropdown can be further configured to show only certain classes via the CssClass collection of the RadEditor. 

As for creating custom buttons, this demo (Custom Tools) demonstrates exactly how to achieve that.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
ghini
Top achievements
Rank 2
answered on 24 Jan 2015, 10:33 AM
Hello Ianko,
thanks for your answer ...

1) Your suggestion works well but only if ApplyClass is visible in the Toolbar. If I hide the combobox of the Toolbar, the combo in the Node Inspector displays all classes of the page. Is that correct? May be ok anyway.

2) To allow the choice of the background color of the page, I would like to create a button with the ColorPicker. I would like to create a button similar to the Font Color. Is it possible?

Thank you very much
0
Ianko
Telerik team
answered on 28 Jan 2015, 12:40 PM
Hello Ghini,

All dropdowns related to class names are the same tool and are populated with the same options. So, configuring one tool with the appropriate class names, affects all class-dedicated tools.  You can see this screencast.

In the Custom Dropdowns demo is illustrated how you can implement your own dropdown to achieve the required custom tool.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
ghini
Top achievements
Rank 2
Answers by
ghini
Top achievements
Rank 2
Ianko
Telerik team
Share this question
or