Hi,
I'm using the ckEditor tag but the readonly and width attributes are not working,
basically, even if readonly is true, I'm able to edit the content and the width is always the same
independently by my setting (width="300px").
Any help?
Best regards
This is how I'm instantiating ckEditor
<pe:ckEditor width="300px" readonly="true" value="#{chatBacking.allChat}" />
and this is my pom:
...
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
<version>2.2</version>
</dependency>
<!-- Atmosphere for the push -->
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-runtime</artifactId>
<version>2.4.1</version>
</dependency>
<!-- this is essential to make push working (otherwise EventBus will return null) -->
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<!-- JSF Primafaces framework -->
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.3</version>
</dependency>
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>all-themes</artifactId>
<version>1.0.10</version>
</dependency>
<!-- primefaces extension to use ckEditor or something else -->
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>4.0.0</version>
</dependency>
...
ckEditor, readonly and width attributes are not working
Hi
We are using the ckEditor and the width works fine but you have to use a dailog...
Regards
Richard
We are using the ckEditor and the width works fine but you have to use a dailog...
Code: Select all
<p:dialog id="id_#{dialogId}" header="#{msg['objBemDlg.titel']}" dynamic="true" widgetVar="id_#{dialogId}" width="650px">
<pe:ckEditor id="id_#{dialogId}_objBemEditor" value="#{objBean.objBem}"
toolbar="[['Save','Cut','Copy','Paste','PasteText','-','Preview','Print', 'TextColor','BGColor','Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ]]">
<p:ajax event="save" listener="#{objBean.saveObjBem}" update="@form" process="@this" />
</pe:ckEditor>
</p:dialog>
Richard
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests