Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Embedding Quicktime with TinyMCE in SiStri 2.3.2

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

Page: 1
Go to End
Author Topic: 1847 Views
  • Gutur
    Avatar
    Community Member
    17 Posts

    Embedding Quicktime with TinyMCE in SiStri 2.3.2 Link to this post

    Hi there,

    after searching and fiddeling for a quite some time I found how to add a media-upload-button to TinyMCE in SiStri 2.3.2.
    I added these lines to /mysite/_config.php
    HtmlEditorConfig::get('cms')->enablePlugins('../jsparty/tiny_mce2/plugins/media'); // enables plugin
    HtmlEditorConfig::get('cms')->insertButtonsAfter('charmap', 'media'); // positions plugin
    and, yay, I have a media-Button ow and can insert Flash, Quicktime, Shockwave etc. exactly like the dropdown options with the Flash-Button in TinyMCE...

    But, like with any Object added with the Flash button, on "savin and publishing" the page it always changes the type of the embedded media back to Flash. It seems correct in the backend directly after saving but when I go to another page and back to that page (i.e. refreshing the page) it is set back to Flash...

    How in three devils name can I embedd and and "manage" something other then Flash, Quicktime, with SiStri and TinyMCE?

    Please help /Carsten

  • moloko_man
    Avatar
    Community Member
    72 Posts

    Re: Embedding Quicktime with TinyMCE in SiStri 2.3.2 Link to this post

    I don't know if you've been able to solve this yet, if you have please share.

    I have partially fixed this issue, i.e. I can embed quicktime, windows media, etc. and have it show up correctly on the front end, however, in the backend still shows up as flash if you navigate away and then back.

    To get the media to show up correctly on the front end add the following code to LeftAndMain.php:

    embed[quality|type|pluginspage|width|height|name|src|align],

    I added that block of code on line 176 in front of the map[... entry. Now I know its core code, but it works for now. Maybe I should submit a ticket?

    I'm looking into getting tinyMCE to stop changing that, if I find anything I'll post it here.

    EDIT: oh I'm using version 2.3.3

  • sdiel
    Avatar
    Community Member
    1 Post

    Re: Embedding Quicktime with TinyMCE in SiStri 2.3.2 Link to this post

    Hi,

    old thread - but perhaps this is still a point of interest.

    got a (hacky) workaround for this in SS 2.4.
    Well, what I have done is replacing the media fallback, which is flash, to quicktime. It's a core change, but I need it...
    There is a bug which disables an objects classid (HTML). This is required by tinymce to detect the media type.
    No one given -> fallback to flash...

    You can change that behaviour by replacing the fallback 'mceItemFlash' with 'mceItemQuickTime' in sapphire/thirdparty/tinymce/plugins/media/editor_plugin_src.js (should be in line 305 and 335). There are two switch-cases to check the media type. The default has to be changed.

    The problem is not solved by this workaround, the behaviour will change... Flash and other media than QuickTime will now be converted to QuickTime after saving once...

    Unfortunately, I don't have time to fix this bug or get a proper solution, the workaround works for my case. I don't need flash for the project I'm working on...

    Cheers,
    Sebastian

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