google-code-export / gwt-ckeditor

Automatically exported from code.google.com/p/gwt-ckeditor
2 stars 0 forks source link

config.setEnterMode doesn't seem to work #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a CKEditor config.
2. config.setEnterMode("br")
3. Run the editor and hit return

What is the expected output? What do you see instead?
Expected "br" tags.   Produces "p" tags.

What version of the product are you using? On what operating system?
gwt-ckeditor version 0.5
GWT version 2.3.0

Original issue reported on code.google.com by cw...@cloudsherpas.com on 2 Aug 2011 at 6:30

GoogleCodeExporter commented 9 years ago
I figured it out.  You need to specify integer values here:
'1' = 'p'
'2' = 'br'
'3' = 'div'

I needed to dig into the CkEditor source itself to figure this out.  I'd 
recommend adding some constants to the CKConfig class for this.

Original comment by cw...@cloudsherpas.com on 2 Aug 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Thank you ! I will add these constants

Original comment by picard.d...@gmail.com on 2 Aug 2011 at 7:18

GoogleCodeExporter commented 9 years ago
Is this modified? Should I use the integer values or should I use some kind of 
constants?

Thanks!

Original comment by cris...@gmail.com on 24 Jul 2012 at 2:15