Class ResourceModifier
- java.lang.Object
-
- org.primefaces.extensions.ckeditor.ResourceModifier
-
public class ResourceModifier extends java.lang.ObjectSteps to update:- Delete all files in the src/main/resources/META-INF/resources/primefaces-extensions/ckeditor/ directory - extract new ckeditor files - remove samples dir - Look for CRLF breaks the ckeditor.js such as tableselection.css that might break our parser - Before executing ResourceModifier, modify the short hash (e.g t=L7C8) to match a new version of CKEditor - Execute ResourceModifier - Try to run CKEditor and observe if any error occurs on both browser console and server console - The most common error is "Resources not found". If that's the case, please check if any new plugins's resources that need to be modified then add new rules inside ResourceModifier if needed - Re-run ResourceModifier
-
-
Constructor Summary
Constructors Constructor Description ResourceModifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intindexOf(java.lang.CharSequence seq, java.lang.CharSequence searchSeq, int startPos)static booleanisEmpty(java.lang.CharSequence cs)static voidlog(java.lang.String message)static voidmain(java.lang.String[] args)static java.lang.Stringreplace(java.lang.String text, java.lang.String searchString, java.lang.String replacement)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
indexOf
public static int indexOf(java.lang.CharSequence seq, java.lang.CharSequence searchSeq, int startPos)
-
replace
public static java.lang.String replace(java.lang.String text, java.lang.String searchString, java.lang.String replacement)
-
isEmpty
public static boolean isEmpty(java.lang.CharSequence cs)
-
log
public static void log(java.lang.String message)
-
-