Insufficient instructions for textEditor

UI Components for JSF
Post Reply
arnieAustin
Posts: 120
Joined: 14 Feb 2015, 22:35
Location: Houston, TX

06 Mar 2018, 03:06

I've read over the QuillJS docs but they are almost as terse as that in the PF doc.

I need to HIDE the toolbar completely on a page where the editor is used to display HTML text in read-only form.

I have tried this:

Code: Select all

<f:facet name="toolbar">
	<span class="ql-formats" />
</f:facet>
but all it does is remove the toolbar items; a small amount of white space remains.

Some help would be appreciated.
--- --- ---
PF 12 | JSF 4 | CDI 4 | WildFly 27

arnieAustin
Posts: 120
Joined: 14 Feb 2015, 22:35
Location: Houston, TX

10 Mar 2018, 15:38

Quill only has TWO themes: bubble and snow. Bubble is actually what I need in a few places where HTML-based help text is to be shown in a read-only expandable panel. Yet PF has no theme= parameter for p:textEditor.

If using Snow, the Quill web site/demo page disables the toolbar altogether, via:

Code: Select all

modules: {
    toolbar: null;
  }
This will allow the editor to appear without a toolbar. How do I do this via PF?
--- --- ---
PF 12 | JSF 4 | CDI 4 | WildFly 27

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

10 Mar 2018, 19:44

Ummm it looks like on the p:textEditor there is a toolbarVisible property. Have you tried...

Code: Select all

<p:textEditor toolbarVisible="false" .. />
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

arnieAustin
Posts: 120
Joined: 14 Feb 2015, 22:35
Location: Houston, TX

11 Mar 2018, 17:55

I have:

Code: Select all

		<p:textEditor id="#{cc.attrs.idPrefix}Id" widgetVar="#{cc.attrs.idPrefix}Widget"
			value="#{helpPanelUtility.pageContent}" readonly="true"
			toolbarVisible="false" />
No effect, still appears.
--- --- ---
PF 12 | JSF 4 | CDI 4 | WildFly 27

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

11 Mar 2018, 18:03

You are using PF 6.1 that was added in PF6.2 . Please upgrade to 6.2 and try again.

https://github.com/primefaces/primefaces/issues/2499
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

arnieAustin
Posts: 120
Joined: 14 Feb 2015, 22:35
Location: Houston, TX

11 Mar 2018, 18:33

Ah, done. Works, woohoo!
--- --- ---
PF 12 | JSF 4 | CDI 4 | WildFly 27

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

11 Mar 2018, 20:52

Woo hoo!

Glad I could help.
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

rafael.bomfim
Posts: 9
Joined: 17 Apr 2015, 15:16

26 Apr 2018, 16:53

Good Morning!

I still dont understand how I apply the buble or snow theme.

You can put an example here.

Mechanic
Posts: 2
Joined: 25 Apr 2018, 10:38

26 Apr 2018, 20:26

rafael.bomfim wrote:
26 Apr 2018, 16:53
Good Morning!

I still dont understand how I apply the buble or snow theme.

You can put an example here.
Yes, I also have difficulties with this. I can not figure out what's what .. If you can add an example. What would I see how it's done
Thank you

rafael.bomfim
Posts: 9
Joined: 17 Apr 2015, 15:16

27 Apr 2018, 14:33

I put it that way.

Code: Select all

			<p:textEditor value="#{mensagemMB.edicao.mensagem}" id="editorResponder"
					height="200" style="margin-bottom:10px">
					<f:facet name="toolbar">
			             <span class="ql-formats">
			                <button class="ql-bold"></button>
			                <button class="ql-italic"></button>
			                <button class="ql-underline"></button>
			                <button class="ql-strike"></button>
			            </span>
			            <span class="ql-formats">
			                <select class="ql-font"></select>
			                <select class="ql-size"></select>
			            </span>
			            <span class="ql-formats">
				            <select class="ql-color" />
				            <select class="ql-background" />
				        </span>
				        <span class="ql-formats">
				            <button class="ql-script" value="sub" />
				            <button class="ql-script" value="super" />
				        </span>
			        </f:facet>
			</p:textEditor>
I just do not know how to change the theme now.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 38 guests