bolt / bolt

Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.
MIT License
4.15k stars 811 forks source link

  in editor happening in 2.0.5 #2660

Closed peterboorsma closed 9 years ago

peterboorsma commented 9 years ago

Bolt 2.0.5 apparently still has issues with nbsp stuff.

They appear when editing text in the WYSIWYG editor: backspacing, copying & pasting, entering, etc. I'm not exactly sure which action mentioned above causes it..

I do know that the editors add their article like this (especially long texts): Type stuff in a text editor. Paste it into the WYSIWYG editor Use the xT button to discard all shitty code from editors Save the article ... (Another) editor opens the article, edits it (by backspacing, copying & pasting, entering, etc.) Saves it once again.

Pinpickle commented 9 years ago

This issue may have been hindered/helped by #2486, as it changes how the HTML is outputted.

bobdenotter commented 9 years ago

Peter mentioned this issue to me before, and it was my hope that it would be fixed with those changes in 2486, but unfortunately it didn't.

Pinpickle commented 9 years ago

Maybe newer text editors should be looked at? CKEditor just seems so clunky and is only kind of responsive. It also has issues like this one, and from the research I've done, it seems unavoidably caused by pasting content - it can be sanitised but then again, the odd user may want nbsps. It's also ugly.

Something like Redactor or Quill would help keep the text editor current. And to be honest, writing is one of the most important experiences for an average CMS user.

GwendolenLynch commented 9 years ago

Maybe newer text editors should be looked at?

Personally speaking, CKEditor is one of my least favourites... and would be very keen.

But it is going to be a hard one to replace as it needs good functionality, and a lot of it.

Quill

Loses "out of the box" as I can't see any way to manipulate images that have been inserted, nor can you view source.

Redactor

Much nicer, can view source and some additional image functions.

Breakers (immediately looking) are that it can't handle HTML5 <figure> and nothing to edit code... Like I said, personal :grinning:

bobdenotter commented 9 years ago

Despite all of its flaws, CKEditor really is the best option as far as I can tell. Most of the newer "sleek" ones break in various unpredictable ways, when you're not using the latest version of Chrome or Firefox.

Redactor looks nice, but it has a license that is not compatible with Bolt: http://imperavi.com/redactor/download/

peterboorsma commented 9 years ago

Thank you very much! I'll let some editors test it.

svivian commented 9 years ago

This "fix" has created the opposite problem now - every single &nbsp; is removed! This means you can't use multiple spaces e.g. to indent lines. As soon as I save, any indentation is removed.