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

[AdminBundle] Added up/down arrows on nested forms, fix rich editor when moving elements in DOM #908

Merged
merged 9 commits into from
Jan 25, 2016

Conversation

sandergo90
Copy link
Contributor

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets #865 #216

Nested forms can now also be sorted by using the up and down arrow.

Also a fix for the rich editor. When moving a element around in the DOM by sorting it, the ckeditor gets disabled and the content is removed. This is a known bug in Ckeditor. I have fixed it by destroying all the rich editors and reinitialise them when moving them around.

@@ -293,6 +305,28 @@ kunstmaanbundles.pagepartEditor = function (window) {
cb({target: target})
})
};
reInit = function($el) {
$($el).find('*[data-reinit-js]').each(function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$el is already a jQuery element here

@sandergo90
Copy link
Contributor Author

@diskwriter good catch, done.

jockri pushed a commit that referenced this pull request Jan 25, 2016
[AdminBundle] Added up/down arrows on nested forms, fix rich editor when moving elements in DOM
@jockri jockri merged commit 89de0f4 into Kunstmaan:master Jan 25, 2016
@jockri jockri added this to the 3.5.0 milestone Jan 25, 2016
@sandergo90 sandergo90 deleted the fix#adding-updown-nested branch July 7, 2016 06:36
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

Successfully merging this pull request may close these issues.

None yet

3 participants