Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DataObjectManager and Tabset breaks wysiwyg?

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: 846 Views
  • martimiz
    Avatar
    Forum Moderator
    1038 Posts

    DataObjectManager and Tabset breaks wysiwyg? Link to this post

    Hi Uncle Cheese and all others,

    I've tried to use a tabstrip in the DataObjectManager popup, and all seemed to go well, but then I found that the SimpleTinyMCEField (and other wysiwys) was no longer loading properly. I get a couple of '$ is not a function' errors in the following locations:

    .../admin/EditForm/field/myDOMfield/add
    .../sapphire/thirdparty/tabstrip/tabstrip.js - line 104
    .../sapphire/thirdparty/prototype/prototype.js - line 1845

    So this is likely some conflict between prototype and jquery? If a solution exists for this problem, I'm sorry I missed it... This is what I'm doing (simplified):

       function getCMSFields() {

          $fields = new FieldSet();

          $fields->push(
             new TabSet("Root",
                new Tab('MyTab', 'SomeTab'))
             )
          );

          $fields->addFieldsToTab('Root.MyTab', array(
             $content = new SimpleTinyMCEField(
                $name = 'Content',
                $title = 'Some wysiwig content'
             )
          ));
          return $fields;
       }


    Any ideas what to block, strip, change or..?

  • UncleCheese
    Avatar
    4085 Posts

    Re: DataObjectManager and Tabset breaks wysiwyg? Link to this post

    You can't use those CMS tabs in a popup. You can use the tabset I created for DOM, though.. See this thread :http://silverstripe.org/dataobjectmanager-module-forum/show/14080?start=8

  • martimiz
    Avatar
    Forum Moderator
    1038 Posts

    Re: DataObjectManager and Tabset breaks wysiwyg? Link to this post

    So oops - I did miss it

    Thanks for your speedy reaction!

    Martine

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