Jump to:

7939 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » [solved] Using SimpleHtmlEditorField or SimpleWysiwygField in CMS?

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: 1765 Views
  • banal
    Avatar
    Community Member
    901 Posts

    [solved] Using SimpleHtmlEditorField or SimpleWysiwygField in CMS? Link to this post

    Hello all

    I wanted to use the SimpleWysiwygField in the CMS content editor tabs (not in a Popup) and it doesn't seem to work. No joy with the SimpleHtmlEditorField either...
    Did anybody figure out to do this? I'd rather use the SimpleWysiwygField instead of TinyMCE since the Site Administrator should only have a very limited set of text-formatting capabilities.

    Any pointers are welcome. Thanks.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: [solved] Using SimpleHtmlEditorField or SimpleWysiwygField in CMS? Link to this post

    I managed to make the SimpleHtmlEditorField to work.

    Edit: Removed the patch. Doesn't work as expected... still looking for a solution.

    Update: Used HtmlEditorConfig to configure good ol' TinyMCE to suit my needs. Problem solved.

  • UncleCheese
    Avatar
    4085 Posts

    Re: [solved] Using SimpleHtmlEditorField or SimpleWysiwygField in CMS? Link to this post

    What exactly didn't work? I have several clients using it right now. If you could provide an exact error, I can put in a patch. Thanks.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: [solved] Using SimpleHtmlEditorField or SimpleWysiwygField in CMS? Link to this post

    Hey UncleCheese

    They both didn't work because of JavaScript library clashes. The SimpleWysiwygField throws some JavaScript errors, and the SimpleHtmlEditorField worked, after I changed your "Requirements::customScript" to a jQuery.noConflict variant. This only worked on Page load, but sadly not when page-content is being loaded via AJAX.

    Are you sure your clients use the Editor in the CMS as TinyMCE replacement? It works fine in pop-ups, that's for sure. I'd be surprised if it works in the CMS Content-Tabs as it is now.

  • UncleCheese
    Avatar
    4085 Posts

    Re: [solved] Using SimpleHtmlEditorField or SimpleWysiwygField in CMS? Link to this post

    Oh, okay, I misunderstood. Yeah, those two fields are meant for DOM popup windows only. That's why they come with the DOM package. I should make that clearer in the docs.

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