Jump to:

5514 Posts in 1733 Topics by 1219 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Can I change the width of the page in tinymce?

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

Page: 1
Go to End
Author Topic: 1197 Views
  • Leslie
    Avatar
    Community Member
    6 Posts

    Can I change the width of the page in tinymce? Link to this post

    Hi,

    Silverstripe 2.3.6

    Would it be possible to customise TinyMce in such a way that it looks more like my website? The main container on my website is 800 px wide so it would be helpfull if the page in TinyMce would be 800 pc wide as well?

    Leslie

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Can I change the width of the page in tinymce? Link to this post

    Hi Leslie,

    Adding the code below to your getCMSFields() function in Page.php should do the trick. You might need to play around with some more CSS to make it look good, but this should get you started:

          Requirements::customCSS("
             table#Form_EditForm_Content_tbl{width:800px !important;}
          ");

    note that this will only change the Content field, if you have other custom HTML editor fields then you will need to add CSS for them too.

    Aram

    www.ssbits.com - SilverStripe tutorials, tips and other bits

    1197 Views
Page: 1
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.