Text near Toolbar

5 posts, 1 answers
  1. Johann
    Johann avatar
    28 posts
    Member since:
    Nov 2010

    Posted 19 Aug 2014 Link to this post

    Hi,

    is it possible to write Text in the Toolbar-Area like the attached Picture.
    I want to save the page space around the Editor.
    The text should be the description of the editorcontent

    thanks in advance

    Johann
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Aug 2014 in reply to Johann Link to this post

    Hi Johann,

    Please try the below code snippet to achieve your scenario.

    JavaScript:
    function pageLoad() {
        $(".reToolbarWrapper").after("<span class='align-text'>New Text</span>");
    }

    CSS:
    .align-text
    {
        float : right !important;
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Johann
    Johann avatar
    28 posts
    Member since:
    Nov 2010

    Posted 21 Aug 2014 in reply to Shinu Link to this post

    Hi Shinu,

    Thank you for your reply.
    How can i do this separately for more Editors in page? I have a Page with four Editors. If i use your snippet all the Editors in Page have the same text in Toolbar.

    Thank you for your help.

    Greetings Johann
  5. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Aug 2014 in reply to Johann Link to this post

    Hi Johann,

    Try to set a CssClass for the RadEditor and do the following modification in the JavaScript. Let 'demo1' and 'demo2' are the CSSClass for RadEditor 1 and RadEDitor 2 respectively, then the code will be as follows.

    JavaScript:
    function pageLoad() {
        $(".demo1 .reToolbarWrapper").after("<span class='align-text'>Editor 1</span>");
        $(".demo2 .reToolbarWrapper").after("<span class='align-text'>Editor 2</span>");
    }

    Thanks,
    Shinu.
  6. Johann
    Johann avatar
    28 posts
    Member since:
    Nov 2010

    Posted 22 Aug 2014 in reply to Shinu Link to this post

    Hi Shinu,

    Thank you very much.
    This works fine

    Johann
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017