Jump to:

5521 Posts in 1733 Topics by 1220 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Messed up wysiwyg editor

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

Page: 1
Go to End
Author Topic: 864 Views
  • _dp
    Avatar
    Community Member
    3 Posts

    Messed up wysiwyg editor Link to this post

    hi

    i wanted to modify the width of the wysiwyg editor, so i searched for it in the documentation and found this:
    http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/width

    i tried to place it into my _config.php file and my Page.php file, but this didnt work.

    then i tried and added this code to my Page.php:

    public function getCMSFields() {
          $fields = parent::getCMSFields();
          
          HtmlEditorConfig::get('cms')->setOption('width', '460');

          return $fields;
       }


    But this somehow messed my editor up. there are no buttons displayed anymore, instead i only see bb codes listed below the textbox.

    how can i reset the config for the editor?

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: Messed up wysiwyg editor Link to this post

    Simply delete your code changes and everything should work like before. If you make changes to getCMSFields() no changes in the database occure.

  • _dp
    Avatar
    Community Member
    3 Posts

    Re: Messed up wysiwyg editor Link to this post

    Hi

    thx, i reset to the default template and start from the scratch now

    864 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.