Using org.omnifaces.resourcehandler.CombinedResourceHandler
with,
- OmniFaces 2.2 final
- PrimeFaces 5.3 final
- PrimeFaces Extensions 4.0.0
There is a <pe:ckEditor>
being used at one place in an application.
Simply trying to load the editor like the following.
<h:form id="form">
<pe:ckEditor value="Contents" label="Label" height="200" width="1000"/>
</h:form>
leaves the following JavaScript error on the console.
Uncaught TypeError: Cannot read property 'replace' of undefined
The test case contains nothing other than the basic XHTML structure and a <pe:ckEditor>
tag.
The error disappears, when
<resource-handler>org.omnifaces.resourcehandler.CombinedResourceHandler</resource-handler>
is removed from faces-config.xml
.
The error is arriving from primefaces-extensions.source.js
. Something wonky is likely to be happening in assembling / combining the JavaScript code into a single JavaScript file, when a <pe:ckEditor>
is used.
It is also reproducible in OmniFaces 2.1 final