Setting primefaces.CSP to true disables the CK editor tool bar

Community Driven Extensions Project
Post Reply
mxolisi.veco
Posts: 2
Joined: 09 Aug 2021, 20:49

09 Aug 2021, 21:15

In my web.xml, I added

<context-param>
<param-name>primefaces.CSP</param-name>
<param-value>true</param-value>
</context-param>


This results in disabling the CK editor tool bars

if I set primefaces.CSP to false as below, the Ck editor works as expected(The toolbar is active)

<context-param>
<param-name>primefaces.CSP</param-name>
<param-value>false</param-value>
</context-param>


I don't know if this is normal behaviour or a diffect, I was expecting the CK editor to work regardless of what primefaces.CSP value is.

pom.xml

<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>10.0.0</version>
</dependency>
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>10.0.2</version>
</dependency>
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>resources-ckeditor</artifactId>
<version>10.0.2</version>
</dependency>
<dependency>
<groupId>com.github.librepdf</groupId>
<artifactId>openpdf</artifactId>
<version>1.3.26</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.omnifaces</groupId>
<artifactId>omnifaces</artifactId>
<version>3.11.1</version>
</dependency>
</dependencies>

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

10 Aug 2021, 15:01

The CKEditor is a complex beast of JS code see this original issue for the explanation: https://github.com/primefaces-extension ... issues/748

CKEditor Issue: https://dev.ckeditor.com/ticket/8584
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

mxolisi.veco
Posts: 2
Joined: 09 Aug 2021, 20:49

18 Aug 2021, 14:50

Hi Robert45123.
Thanks for your reply, unfortunately you did not understand the issue.

Melloware has already provided me with very usefull information, please have a look at his reply.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests