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

[Solved] Insert and Close buttons, change appearance

1 Answer 79 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jozef
Top achievements
Rank 1
Jozef asked on 19 Apr 2011, 10:48 AM

Hi,

is it possible to change appearance of buttons in modal dialogs opened from editor? For example when inserting image or hyperlink - insert looks like button, close like link. We have requirement for both buttons to have the same appearance.

I tried to override CSS using 

.StyleSheets(x => x.Add("~/Content/telerikEditor.css")))

But it looks, this css is ignored for buttons (yet works for content of editor).

Thank you,

Jozef

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 19 Apr 2011, 01:02 PM
Hello Jozef,

You can subscribe to the Editor's OnExecute client event and change the CSS class of the "Close" button:

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-editor-client-api-and-events.html#OnExecute


Html.Telerik().Editor()
           .Name("editor")
           .ClientEvents(ev => ev.OnExecute("onexec"))


function onexec(e)
{
    window.setTimeout(function(){$(".t-editor-dialog .t-button-wrapper .t-link").addClass("t-button").removeClass("t-link");}, 100);
}


All the best,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Jozef
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or