Update to work with the latest version of 'richtext'#7
Open
Conversation
The `richtext` ingredient now uses TinyMCE 7.9.1 (eprints/richtext#10) so this changes `initTinyMCE_for_easy_pages` to match the changes in the version bump. The `textpattern` ingredient has been removed and I believe is just included by default now so I have just removed that. The `preview_with_css_branding` is a modified version of `preview` so I have pulled the new version of `preview` (as the previous version was for 4.6.1) and then re-applied the modifications (filter content with `preview_substitutions` and add a font style-sheet).
I thought I had done this in #6 however I somehow missed this use of `jQuery.ready` so I have now replaced that with a `DOMContentLoaded` listener. This is particularly relevant now that it works with the latest version of `richtext` (which doesn't use jQuery).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The
richtextingredient now uses TinyMCE 7.9.1 (eprints/richtext#10) so this changesinitTinyMCE_for_easy_pagesto match the changes in the version bump.The
textpatterningredient has been removed and I believe is just included by default now so I have just removed that.The
preview_with_css_brandingis a modified version ofpreviewso I have pulled the latest version ofpreview(as the previous version was for 4.6.1) and then re-applied the modifications (filter content withpreview_substitutionsand add a font style-sheet).This also removes an extra use of
jQuerythat I missed when I removed the others in #6.