Jump to:

23375 Posts in 18175 Topics by 2866 members

General Questions

SilverStripe Forums » General Questions » 2.3 and the position of the HTML editor toolbar

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1928 Views
  • Aram
    Avatar
    Community Member
    598 Posts

    2.3 and the position of the HTML editor toolbar Link to this post

    Hi Guys

    Having been using 2.3 for a while now it's really noticable how much has improved from previous versions. There is one change however which I am finding a little difficult to deal with on a current project and that is the repositioning of the TinyMCE editor to the inside of the field itself.

    In principle I it's a great idea, reducing clutter on pages that dont need it and also making clear which boxes are HTML and which are not. And in most cases that probably outweighs the negatives.

    However it becomes a real problem on pages that have large amounts of content in one editor because switching on auto resize makes the field far bigger than the surrounding window, so say you wanted to make some text near the bottom bold, you now have to scroll down to the bottom, highlight it and then scroll all the way back to the top to find the bold button. Seriously tedious and not something I want to have to explain to clients. So the other option, and the one that has been implemented by default is to keep the field fixed and relatively small. This is fine for small amounts of content but when you have a very large page it becomes a total nightmare.

    So anyway I am wondering how I would go about moving the tool bar back to be persistent at the top of the screen? And also what are other peoples opinions about this?

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: 2.3 and the position of the HTML editor toolbar Link to this post

    The reason for moving the editor to be nearer the content rather then the top was more of a technical one rather then a design one. The amount of customizing to get tinymce at the top was huge, when sam upgraded tiny_mce the decision was made that we would take the easy way and just attach it to the content field, reducing the amount of editing we had to do to tinymce.

    So the short answer is no, moving it back up to the top would be a world of hurt AFAIK.

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: 2.3 and the position of the HTML editor toolbar Link to this post

    hi Aram,

    On another note ; mind telling me how you set the (re)-size of the TinyMCE field ? ;)

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: 2.3 and the position of the HTML editor toolbar Link to this post

    @willr - Ahh I see. that's a shame but understandable. I take it there are no plans to move it back to the top at some point?

    @Fuzz - There are 2 ways to change the size, you can either make it autoresize by changing the value in cms/javascript/tinymce.template.js to true or you can set a larger fixed size when defining the field by adding the number of rows to the definition: new HTMLEditor("Content", "Content", 45).

    Unfortunately neither are ideal for the reasons stated above, but they are better than the default

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: 2.3 and the position of the HTML editor toolbar Link to this post

    Thanks..

    A default size sounds like a good addition to the _config.php , no ?

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: 2.3 and the position of the HTML editor toolbar Link to this post

    Yea that would be really useful.

    Also having a user re-sizable editor window would be great, like they have on the TinyMCE demo page: http://tinymce.moxiecode.com/examples/full.php

    I tried adding theme_advanced_resizing : true to the template but it doesn't seem to work, is that locked off by silverstripe?

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: 2.3 and the position of the HTML editor toolbar Link to this post

    oooh just found full screen mode which pretty much solves all the problems!

    in cms/javascript/tinymce.template.js add the following:

    line 32 in the plugins list add: ,fullscreen
    line 35 or 36 in the buttons list add: ,fullscreen

    then you have a button which will fullscreen the editor and make editing large blocks of content a breeze!

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: 2.3 and the position of the HTML editor toolbar Link to this post

    heey.. that is a good find !

    Thanks !

    1928 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.