You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2021/03/24 07:34:14 UTC
[myfaces-tobago] branch master updated: doc: clean up ckeditor
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new ec83939 doc: clean up ckeditor
ec83939 is described below
commit ec83939a8a09fdafc076498a07398eeade28209e
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Wed Mar 24 08:21:56 2021 +0100
doc: clean up ckeditor
---
.../myfaces/tobago/example/demo/CkeditorController.java | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CkeditorController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CkeditorController.java
index 5358f8d..2c9a644 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CkeditorController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CkeditorController.java
@@ -19,10 +19,7 @@
package org.apache.myfaces.tobago.example.demo;
-import org.apache.myfaces.tobago.config.TobagoConfig;
-
import javax.enterprise.context.SessionScoped;
-import javax.faces.context.FacesContext;
import javax.inject.Named;
import java.io.Serializable;
@@ -30,21 +27,13 @@ import java.io.Serializable;
@Named
public class CkeditorController extends SourceFileReader implements Serializable {
- private String contentSecurityPolicyMode;
private String text;
public CkeditorController() {
- final TobagoConfig tobagoConfig = TobagoConfig.getInstance(FacesContext.getCurrentInstance());
- contentSecurityPolicyMode = tobagoConfig.getContentSecurityPolicy().getMode().getValue();
-
text = "<p><strong>Sun</strong></p>"
+ "<p>The sun is a star in our galaxy.</p>";
}
- public String getContentSecurityPolicyMode() {
- return contentSecurityPolicyMode;
- }
-
public String getText() {
return text;
}