-
Notifications
You must be signed in to change notification settings - Fork 49
Updating Portal with new CKEditor zip
Jonathan Mak edited this page Sep 26, 2018
·
2 revisions
-
Copy the new ZIP files (CKEditor, WSC, SCAYT) to
portal-web\third-party
Note: Because CKEditor plugins may be version dependent, you may also need to download and update the WebSpellChecker (WSC) and SpellCheckAsYouType (SCAYT) plugins.
- Edit portal-web/build.xml (Liferay Portal 6.2 & 6.1 & 6.0 only):
<property name="ckeditor.file" value="ckeditor_<VERSION>.zip" />
<property name="scayt.file" value="ckeditor_<VERSION>.zip" />
<property name="wsc.file" value="ckeditor_<VERSION>.zip" />
- Delete (Liferay Portal 6.0.x & 6.1.x only):
portal-web/docroot/html/js/editor/ckeditor_diffs/ckeditor.js
portal-web/docroot/html/js/editor/ckeditor/
- Build CKEditor in Portal
For 6.0.x, 6.1.x, 6.2.x:
$ cd portal-web/
$ ant build-ckeditor
For 7.0.x:
$ cd modules/frontend/frontend-editors-web/
$ ant clean deploy
- Commit files to Portal (repository owner only)
Be sure NOT to commit the uncompressed development version.
$ cd .. # portal root
$ git add . # ckeditor.js, build.xml, ckeditor_?.?.?.zip, wsc_?.?.?.zip, scayt_?.?.?.zip, ckbuilder.jar, versions.xml, versions.html, etc.
$ git commit -m "<JIRA-ID> Updating CKEditor to <GIT-TAG>" # 6.0.x & 6.1.x only
$ unzip -z portal-web/third-party/ckeditor_?.?.?.zip
SHA: xxxxxxx
$ git commit -m "<JIRA-ID> Updating CKEditor to <SHA-FROM-ZIP-COMMENT>"
- Send changes for further review to be pushed upstream (repository owner only)