primefaces-extensions / primefaces-extensions.github.com

Organization repo, only for homepage, wiki and issue tracker
https://primefaces-extensions.github.io/
70 stars 22 forks source link

CKEditor: EnterMode and ShiftEnterMode #779

Closed testing138 closed 4 years ago

testing138 commented 4 years ago

Hi all,

It would be very very awesome if you can avoid the

and

tags which will be generated by default from the Editor.

I like the editor, but with this "bug" a cannot use it in my project in some scenarios. I´m currently substring my string in the backend, but this will also not work everytime.

If I google this, many other users have the same issue. I´ve tried already to create my own ckeditor.js and changed the following code:

CKEDITOR.config = { ...... enterMode: CKEDITOR.ENTER_BR,

But this seems not working.

It would be so nice, if you can add a flag like: avoidBreaklinesStartEnd

Many thanks

melloware commented 4 years ago

I think i will add 2 new props.

https://ckeditor.com/docs/ckeditor4/latest/features/enterkey.html

"EnterMode" and "ShiftEnterMode" allowing you to control the type but I will default to CKEDITOR.ENTER_P

melloware commented 4 years ago

Fixed with commit: https://github.com/primefaces-extensions/core/commit/758a327ab216af7ccb3cb7ef2de25a341d8b15b0

Will be in 8.0.1 which will be released in the next 1-2 weeks!

testing138 commented 4 years ago

Wow, many many thanks - you made my day!

melloware commented 4 years ago

8.0.1 is now in Maven Central