3 Editors with one Toolbar

4 posts, 0 answers
  1. Johann
    Johann avatar
    29 posts
    Member since:
    Nov 2010

    Posted 06 Dec 2013 Link to this post

    Hi,

    i will have three Editors on a site (looks like my added Image)

    Is it possible to have one external Toolbar for all the three Editors?

    I hope you understand what i meen.

    greetings

    Johann

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5361 posts

    Posted 06 Dec 2013 Link to this post

    Hello,

    The following demo will show you how to share the tools amongst several RadEditors: http://demos.telerik.com/aspnet-ajax/editor/examples/toolprovider/defaultcs.aspx.
    You can see here the possible toolbar modes the control offers: http://www.telerik.com/help/aspnet-ajax/editor-toolbar-modes.html. Perhaps one of the PageTop options will be most suitable for you.


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. Johann
    Johann avatar
    29 posts
    Member since:
    Nov 2010

    Posted 08 Dec 2013 Link to this post

    Hi,

    Thank you, for your reply, but this is not what i want. I would like to have on the left side a static Toolbar.

    With this Toolbar i like to control the focused Editor on the right.

    Is there a possible solution for this Scenario?

    Greetings

    Johann

  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5361 posts

    Posted 09 Dec 2013 Link to this post

    Hello Johann,

    You can define custom buttons (e.g., via images, spans with styles, etc.) and use the editor's fire() command to control it: http://www.telerik.com/help/aspnet-ajax/editor-fire.html.
    You can keep the currently focused editor by attaching to the onfocus event of each editor (http://www.telerik.com/help/aspnet-ajax/editor-attacheventhandler.html) and storing a reference in a global variable. The onblur event can be used to clean up this reference so you do not attempt to execute logic when the user has not focuised an editor. Even the toolbar may be disabled.


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top