pe:codeMirror - doesn't work with some xhtml code

Community Driven Extensions Project
Post Reply
User avatar
fiorenzino
Posts: 32
Joined: 26 Sep 2009, 12:00

12 Mar 2012, 21:29

Hi,

i started to use codeMirror component in my little cms.

I want replace all my inputTextarea with pe:codeMirror to edit xhtml code.
But using this jsf code:

Code: Select all

<pe:codeMirror theme="eclipse" value="#{controller.code}"
readOnly="false" lineNumbers="true" mode="text/html" />
if #{controller.code} contains:

Code: Select all

<textarea class="textarea_comment" name="body" cols="10" rows="10"> </textarea>
The codeMIrror textarea cut my html code at:

Code: Select all

<textarea class="textarea_comment" name="body" cols="10" rows="10">
Have you some suggestions to work around this supposed bug?
I tried to use escape="true", but without success.

bye bye

Fiorenzo

PS is it possibile use primefaces extension with prime 3.2.1? (with 3.2.1RC1 doesn't work!)

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

12 Mar 2012, 21:55

0.3 is not compatible with 3.2. We will release an maintenance release during next week.
Please create an issue, i don't know if i implemented escape!
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

13 Mar 2012, 20:22

Fixed!
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests