[1.13] Bugfixes for jQuery <-> Redactor conflict #905
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Redactor 1 was built on top of jQuery 1.x, Rails 5.2 pulls jQuery 3. jQuery 3 has removed the jQuery.size() function which is used by Redactor 1. This PR reimplements jQuery.size() as part of the assets.
The 1.13 branch gemspec didn't limit the maximum version of bootstrap_form, as a consequence installing/updating 1.13 could pull newer version of bootstrap_form that depends on BS4, which would break the layout of custom controllers that are reusing the CMS backend