This morning I decided to see if pe:ckEditor would work better for me than p:editor and p:textEditor, so I updated my dependencies to the current versions as show below.
Code: Select all
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>resources-ckeditor</artifactId>
<version>6.0.0</version>
</dependency>
- Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. send @ jquery.js.xhtml?ln=primefaces&v=6.0&v=6.0:25 primefaces-extensions.source.js:701
- CKEditor throwed a error while destroying the old instance: TypeError: Cannot read property 'destroy' of undefined "http://localhost:8080/elis-wa/javax.fac ... =6.0&v=6.0"
- Failed to load resource: the server responded with a status of 404 (Not Found) "http://localhost:8080/elis-wa/javax.fac ... =6.0&v=6.0"
- Failed to load resource: the server responded with a status of 404 (Not Found) VM844:226 Uncaught [CKEDITOR.resourceManager.load] Resource name "default" was not found at "http://localhost:8080/elis-wa/javax.fac ... =6.0&v=6.0". "http://localhost:8080/elis-wa/javax.fac ... =6.0&v=6.0"
- Failed to load resource: the server responded with a status of 404 (Not Found) "http://localhost:8080/elis-wa/procedure/RES_NOT_FOUND" Failed to load resource: the server responded with a status of 404 (Not Found)
PF 5.3 with PFE 3.2.0
This combination worked as expected.
PF 5.3 with PFE 4.0.0
This combination worked as expected.
PF 5.3 with PFE 6.0.0
This combination did not work and threw the following error in Chrome:
- CKEditor throwed a error while destroying the old instance: TypeError: Cannot read property 'destroy' of undefined primefaces-extensions.source.js:17
Uncaught TypeError: Cannot read property 'charAt' of undefined 1.1.1.1. at Object.isExtensionMapping (primefaces-extensions.source.js:17)
at Object.CKEDITOR_GETURL (primefaces-extensions.source.js:568)
at Object.window.CKEDITOR.window.CKEDITOR.e.getUrl (eval at <anonymous> (jquery.js.xhtml?ln=primefaces&v=5.3&v=5.3:14), <anonymous>:8:201)
at e (eval at <anonymous> (jquery.js.xhtml?ln=primefaces&v=5.3&v=5.3:14), <anonymous>:458:401)
at b (eval at <anonymous> (jquery.js.xhtml?ln=primefaces&v=5.3&v=5.3:14), <anonymous>:458:483)
at Object.loadPart (eval at <anonymous> (jquery.js.xhtml?ln=primefaces&v=5.3&v=5.3:14), <anonymous>:460:300)
at l (eval at <anonymous> (jquery.js.xhtml?ln=primefaces&v=5.3&v=5.3:14), <anonymous>:237:220)
at a.eval (eval at <anonymous> (jquery.js.xhtml?ln=primefaces&v=5.3&v=5.3:14), <anonymous>:237:82)
at a.i (eval at <anonymous> (jquery.js.xhtml?ln=primefaces&v=5.3&v=5.3:14), <anonymous>:10:222)
at a.CKEDITOR.event.CKEDITOR.event.fire (eval at <anonymous> (jquery.js.xhtml?ln=primefaces&v=5.3&v=5.3:14), <anonymous>:12:47)
This combination did not work but did not throw any errors in the Chrome console. The displayed dialog only showed an empty textarea.
Why does pe:ckEditor work for me with PF 5.3 and PFE 4.0.0 but not with PF 6.0 and PFE 6.0.0?
Thanks!