Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HtmlEditorField duplicates itself after being reordered in Widgets currently used #125

Closed
torleif opened this issue Jun 13, 2016 · 0 comments

Comments

@torleif
Copy link
Contributor

torleif commented Jun 13, 2016

Steps to reproduce:

  1. create a widget that returns a HtmlEditorField in getCMSFields:
    public function getCMSFields() {
        return FieldList::create(
                        TextField::create('Title'), HtmlEditorField::create('Content')
        );
    }
  1. Create the widget on a page with widgets
  2. reorder the widget in the page:
    qidgethtmlerror
torleif added a commit to torleif/silverstripe-widgets that referenced this issue Jun 13, 2016
By disconnecting the tinyMCE it won't trigger a recreate after drag and dropping, so you won't wind up with multiple htmleditors.
torleif added a commit to torleif/silverstripe-widgets that referenced this issue Jun 21, 2016
stevie-mayhew added a commit that referenced this issue Jun 21, 2016
#125 - FIX: disconnect tinyMCE while dragging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants