Since PF 6.2 all formattings (font, size, crlf, ...) are getting lost when submitting/processing the content of texteditor. This doesn't happen in PF 6.1.
Can anyone confirm that?
p:textEditor - formattings are getting lost in PF6.2 RC1
Seems to be a bug in PF6.2 RC1.
XHTML
BEAN
Before submit
After submit
XHTML
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<h:form>
<p:textEditor widgetVar="editor" value="#{testController.text}" height="300">
</p:textEditor>
<p:commandButton value="Submit"
process="@form"
update="@form" />
</h:form>
</h:body>
</html>
Code: Select all
package de.test;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@SuppressWarnings("serial")
@ManagedBean
@SessionScoped
public class testController implements Serializable
{
private String text;
public String getText()
{
return text;
}
public void setText(String text)
{
this.text = text;
}
}
After submit
Rüdiger
PrimeFaces 11.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14
PrimeFaces 11.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14
Looks like this was done on purpose. Need to figure out how to make it work like the old QuillJS.
https://github.com/quilljs/quill/issues/903
https://github.com/quilljs/quill/issues/903
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
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 214
- Joined: 29 Nov 2011, 00:40
Is this back?
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:
Dont forget the classifier:
Code: Select all
...primefaces
<classifier>jakarta</classifier>
... theme
<classifier>jakarta</classifier>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 22 guests