Jump to:

1161 Posts in 2632 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Upgrade TinyMCE

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1 2
Go to End
Author Topic: 3317 Views
  • Banana
    Avatar
    Community Member
    18 Posts

    Upgrade TinyMCE Link to this post

    Hello everyone.

    Can somebody tell me which files needs to be changed if I want to upgrade the included TinyMCE ?

    I'm asking this in the IRC channel, too.
    Posting the result afterwards.

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Upgrade TinyMCE Link to this post

    TinyMCE by default is stored in

    sapphire/thirdparty/tinymce/

    And the configuration is controlled by

    sapphire/forms/HtmlEditorConfig.php and
    sapphire/forms/HtmlEditorField.php

    The CMS does have some heavy tinymce alterations to support image and link inserting so upgrading could potentially affect that. We try to keep it relatively up to date!

  • Banana
    Avatar
    Community Member
    18 Posts

    Re: Upgrade TinyMCE Link to this post

    yes that is right. Those are the file you need to alter.

    the extended things from ss are seperate modules, so you do not break them while updating and overwriting the folders.
    So far it works well, since the TinyMCE api 3.0 was used and the latest release is a api 3.0 release.

    Also the configuration files work without any problems.

  • andyle2k
    Avatar
    Community Member
    1 Post

    Re: Upgrade TinyMCE Link to this post

    Hi,

    I'm very new to the whole CMS stuff but I've been searching around and SilverStripe seems to be easiest one out there for what I require.

    The thing that annoys me the most though is that the editor is not robust enough. I just want to do some simple text manipulation stuff such as changing the colour and size for certain words within a paragraph without changing the style completely.

    Is there any way to do this?

    I searched around and looked at the TinyMCE website and it looks as though the editor is quite full fledged and can do what I want so I was wondering whether it was possible to incorporate all these features or just the simple text manipulation features into SilverStripe.

    Thanks a lot.

  • smares
    Avatar
    Community Member
    25 Posts

    Re: Upgrade TinyMCE Link to this post

    One problem I have with the editor is the HTML view which you extended to support syntax highlighting. Apparently you are using a plugin which however is quite old and has some problem: being an IFrame, IE always moans when you try to paste content in the HTML view and asks if you want to allow access to the clipboard, on the other hand when pasting text from Word documents for example (especially with Firefox), not only the copied text is pasted, but also some Word markup. Additionally, text pasted from Word sometimes has the formatting maintained in the HTML editor (so when you paste a text that is centered and has a yellow markup for example, you'll see it centered and on a yellow background in the HTML source editor). What I did in my installation is to disable your syntax highlighting plugin and extend TinyMCE's default HTML editor with CodeMirror.

  • zigojacko
    Avatar
    Community Member
    2 Posts

    Re: Upgrade TinyMCE Link to this post

    Altering either HtmlEditorField.php and HtmlEditorConfig.php makes no difference to the TinyMCE buttons in the CMS for me.

    Adding something such as HtmlEditorConfig::get('cms')->addButtonsToLine(1, 'hr,removeformat,visualaid'); for example, does work, but only for certain buttons.

    I have literally tried to add an image button to TinyMCE via about 30 different approaches now and I'm getting extremely frustrated. I've just inherited the development of a client after another company have made alterations.

    Can anyone kindly advise on the how the hell I'm suppose to make changes to TinyMCE please?

    In the back office of clients site, version specifies Simple CMS 2.3.3

    Thanks in advance

  • Lucas
    Avatar
    Community Member
    10 Posts

    Re: Upgrade TinyMCE Link to this post

    Have a look at what Aram says. I found this worked for me.

    Also I was able to create a custom plugin, based on copying the example plugin (sapphire/thirdparty/tinymce/plugins/example), and modifying with examples found on the tinymce site, here

    Then I enabled my plugin and added it's button, using what Aram describes.

    Good luck!

    - Luke

  • siannaDesttiny
    Avatar
    Community Member
    1 Post

    Re: Upgrade TinyMCE Link to this post

    wonderful.

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