Support forums

Default Buttons

Last post 01-24-2014, 12:59 PM by cbeuker. 2 replies.
Sort Posts: Previous Next
  •  01-23-2014, 5:45 PM 78819

    Default Buttons



    I would like to have the editor start up in Full Justify mode.  Is there a way to do this so my users don't have to remember to click the full justify button before they start typing all the time?


    I've been looking through the documentation to see if it's a setting in the configuration file for the given item.  But I can't see anything in there that would suggest this can be done.





  •  01-24-2014, 7:24 AM 78822 in reply to 78819

    Re: Default Buttons

    Hi cbeuker,


    You can try the code below. This api will fire when editor load, and the code  editor.ExecCommand("JustifyFull"); will execute command full justify.


    1. <script type="text/javascript">  
    2.        function CuteEditor_OnInitialized(editor)  
    3.        {  
    4.            editor.ExecCommand("JustifyFull");  
    5.        }  
    6. </script>  




  •  01-24-2014, 12:59 PM 78828 in reply to 78822

    Re: Default Buttons

    Cool, Thanks.


    Seems to work on some pages and not others, but probably a problem on my side.


View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems