Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Images in SimpleTinyMCEField content?

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1268 Views
  • LesC
    Avatar
    Community Member
    70 Posts

    Images in SimpleTinyMCEField content? Link to this post

    Hi folks,

    I would imagine someone has asked this at some point, but I can't for the life of me find it in the forums.

    I'm using DOM to create data objects (news articles), and would like to include images in the content area. Is this possible in the SimpleTinyMCEField?

    When I click on the image insert icon in the toolbar, it just shows me the old school TinyMCE image manager.

    Is there any way to hook it into the main images in the file uploads, or does my client have to work out the url to type in?

    I'm hoping this is an easy fix

  • UncleCheese
    Avatar
    4085 Posts

    Re: Images in SimpleTinyMCEField content? Link to this post

    It's not an easy fix. It's pretty far off right now, I'd say. It would require a lot of custom javascript coding, I think, because all of the image/page selection stuff that comes bundled with the SS tinymce field is so baked into CMSMain. It's not even salvageable.

  • LesC
    Avatar
    Community Member
    70 Posts

    Re: Images in SimpleTinyMCEField content? Link to this post

    Thanks for the quick reply UC. You have no idea how gutted I am that it's not connected!! I'm going to have to see what I can do to get round this, and I'll post back here if I find any result...

  • UncleCheese
    Avatar
    4085 Posts

    Re: Images in SimpleTinyMCEField content? Link to this post

    When I really need that functionality, I just use ModelAdmin instead of DOM. There comes a point when the requirements of an object simply exceed the capabilities of a popup window.

  • LesC
    Avatar
    Community Member
    70 Posts

    Re: Images in SimpleTinyMCEField content? Link to this post

    I've built over 10 sites in SS now, and I've never tried out ModelAdmin!! I think I better get to it Cheers again Uncle Cheese!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Images in SimpleTinyMCEField content? Link to this post

    It sucks big time. (Sorry, SS, if you're reading this)

    I was in your boat.. stayed away from it for a good year after it deployed. Finally decided to jump in a few months ago, and it's been nothing but a headache for me ever since. It's in dire need of a new UI, for one. Among other shortcomings, there's no list view! (???)

    It also requires a bit of JS hacking to get HtmlEditorField working with it. I've actually commissioned SS to expedite the changes. They're working on it as we speak.

    Anyway, let me know how you get on. Hopefully you're more patient than I am.

  • LesC
    Avatar
    Community Member
    70 Posts

    Re: Images in SimpleTinyMCEField content? Link to this post

    Righto - in that case I'm going to have to stay away from it too especially until the HTMLEditorfield & listings are sorted.

    It's a shame that some of the easy things are so complicated in SS!!

    Do you know of a good way to do a news section for a site, that will allow my clients to include images & links in their news articles, but not fill up the left hand menu in the admin tool? This has been driving me crazy this weekend!!

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