Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated CKEditor upgrade instructions

  • Loading branch information...
commit 6109dece0b149a36f76b7d6e25d26eaf27f737ef 1 parent 5500e30
@lfryc lfryc authored
Showing with 13 additions and 7 deletions.
  1. +13 −7 scripts/ckeditor_pack.sh
View
20 scripts/ckeditor_pack.sh
@@ -1,18 +1,24 @@
#!/bin/sh
-# to build CKEditor, you need to
+# to build CKEditor, you need to:
+#
# 1. download distribution package including _source folder
# 2. checkout appropriate tag from SVN
# 3. copy _dev from checkout SVN folder to the contents of distribution package
-# 4. change ckeditor.pack: from 'kama' as default skin to 'richfaces': _source/skins/richfaces/skin.js
-# 5. run _dev/releaser/releaser.sh
-# 6. copy contents of _dev/releaser/release/release to JSF resources: org.richfaces.ckeditor
-# 7. rename and fix generated skins/richfaces/editor.css to editor.ecss
-# - fix ckeditor.js and skins/richfaces/skin.jsto point to editor.ecss
+# 4. copy _source from richfaces/components/input/ui/src/main/resources/META-INF/resources/org.richfaces.ckeditor to ckeditor/_source
+# 5. change ckeditor.pack: from 'kama' as default skin to 'richfaces': _source/skins/richfaces/skin.js
+# 6. run _dev/releaser/releaser.sh
+# 7. create directory _dev/releaser/release/release/org.richfaces.ckeditor
+# 8. run this script from inside of _dev/releaser/release/release directory
+# 9. copy contents of created org.richfas.ckeditor JSF resources: org.richfaces.ckeditor
+# 10. rename and fix compiled ckeditor.js and skins/richfaces/editor.css to editor.ecss
+# - fix ckeditor.js and skins/richfaces/skin.js to point to editor.ecss
# - fix editor.ecss (ECSS compiler complains) - contains invalid #{richSkin....;} and #{url...;} instructions - remove semi-colon
+# $ sed -ri 's/#\{richSkin([^;]+);/#{richSkin\1/g' editor.ecss
+# $ sed -ri 's/#\{resource([^;]+);/#{resource\1/g' editor.ecss
# - fix editor.ecss - some wrong line-endings (the line ends after ' sign)
#
-# This script takes all the resources requires by CKEditor to work properly
+# What does this script do: takes all the resources required by CKEditor to work properly
# and copy them to ./org.richfaces.ckeditor/ folder.
#
# Replace components/input/ui/src/main/resources/META-INF/resources/org.richfaces.ckeditor
Please sign in to comment.
Something went wrong with that request. Please try again.