Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

8527 Posts in 2222 Topics by 1200 members

General Questions

SilverStripe Forums » General Questions » TinyMCE in Popup - Adding Images?

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

Page: 1
Go to End
Author Topic: TinyMCE in Popup - Adding Images? 378 Views
  • SmartPlugsDesign
    avatar
    Community Member
    57 posts

    TinyMCE in Popup - Adding Images? Link to this post

    I'm trying to use the TinyMCE editor in a popup window in a ModelAdmin sub-class I created. The editor's working great, but I'd like to be able to use the ImageForm & LinkForm functionality. I've been digging through the code for the last few days and not had much success in getting these added. Has anyone tried this? If so, could you share some insight?

    Thanks!
    John

  • aram
    avatar
    Community Member
    485 posts

    Re: TinyMCE in Popup - Adding Images? Link to this post

    I gave up on this pretty quickly and used the official tinyMCE image manager instead (it costs 30EUR but is pretty damn good). The links is more of a problem as the default tinyMCE links editor makes you type the link in, but it should work in a popup.

    Just edit yout cms/javascript/tinyMCE.template.js and edit the second row of buttons: 'ssimage,ssflash,sslink' into 'image,media,link'. Downside is you then get this for the main editor too. I guess there must be a way to create a new HTMLEditorField type and have different settings but I never got that far.

    Alernatively you could use the simple html editor that comes with unclecheeses DataObjectManager module, it has simple url inputs for images and links, but it's a little sparse on other options.

    378 Views
Page: 1
Go to Top

Currently Online: Euphemismus

Welcome to our latest member: fearofbuttons

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

Comments on this website? Please give feedback.