Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
Styling the Insert Image Dialogue
posted

Can the controls on the default Insert Image dialogue be styled either directly or through style sheets? i.e. buttons, text boxes, etc.

Parents Reply
  • 4315
    Suggested Answer
    Offline posted in reply to Yen-Po

    Hi, Yen.

    First sorry for not understanding you in the right way.

    If you look again at the same sample, you will see that 'ToolbarUploadButton' object has tag 'Upload' which represents the HtmlBoxUpload object. This object propose a set of properties and events that will allow you to modify to look and feel of the dialog. One of the properties is CssClass and this class is applied to the 'body' HTML tag of the new dialog window.

    Another approach can be if you want to just add your own CSS stylesheet that will be applied on the whole dialog window. I don't know if this will be better option because if you inspect the dialog HTML you will see that there is no special classes that are applied, which means that your own style rules will have access only to HTML elements like body, table, tr, td, etc. If the properties of HtmlBoxUpload are enough for your needs they are preferable.

    Just in case you want to add your own style sheet you will need in some way load the CSS file or build in the style rules in the HTML response of the Dialog, which means you need to modify this response. This can happen if you attach to HtmlBoxUpload events.

    <ighedit:ToolbarUploadButton runat="server" Type="InsertImage">

        <Upload OnLoad="Upload_OnLoad"/>

    </ighedit:ToolbarUploadButton>

     

    Inside the Upload_OnLoad server handler you need to modify the server response.

     

    I hope this time I understood your question and mainly hope that the post will help you.

     

    Best regards,

    Nikolay

Children