Editor text appears outside of textEditor

UI Components for JSF
Post Reply
lbbishop
Posts: 21
Joined: 24 May 2012, 21:05

16 Oct 2016, 19:55

I replaced the PrimeFaces extension editor with the new textEditor. The component resides within a dialog. Unfortunately, the editor content is displayed in the textEditor edit area as well as below the textEditor component.

Code: Select all

<p:dialog id="editDlg" header="Edit Help Content" widgetVar="editDialog" modal="true" width="1100" responsive="false" position="30,30">
			<h:form id="editForm">
				<p:messages severity="warn,error" />
				<p:panelGrid id="editPanel" columns="1" columnClasses="ui-g-12" layout="grid" styleClass="ui-panelgrid-blank">
					<p:outputLabel for="helpKey" value="Help Key:" />
					<p:inputText id="helpKey" value="#{helpContentAction.helpItem.keyword}" size="35" maxlength="30" label="Help Key" required="true" />

					<p:outputLabel for="helpContent" value="Help Content:" />
					<p:textEditor id="helpContent" value="#{helpContentAction.helpItem.content}" height="500" required="true" />				
				</p:panelGrid>
			</h:form>
		</p:dialog>
How do I remedy this condition?
Environment:
PF 12.x
JSF Mojarra 4.x
Jakarta EE 10
JBoss Wildfly 27.x

RalfScania
Posts: 81
Joined: 26 Sep 2012, 12:51

21 Oct 2016, 10:10

I'm facing the same issue.

When I look into the html, the field is hidden, but its shown anyway.

<input type="hidden" name="mf:editorDeaalit_input">

I tried it in chrome and firefox.


Another thing is, that the text completely vanishes, after I do an ajax commandbutton and update the editor.
This was working with the old editor.
Primefaces 8.0.4, MyFaces 2.2.8, Tomcat 9.0.8

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests