Opened 8 years ago

#14278 new New Feature

Add tool(s)s to deal with unwanted &nbsp entities

Reported by: sirtet Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.4
Keywords: Cc:

Description

There are a lot of situations where   entities are inserted, and in most cases this is not realized by editors and can have bad side effects, mainly text won't wrap anymore.

It is discussed in numerous places, eg. Ticket #11035, also google for ckeditor &nbsp: https://www.google.ch/?gfe_rd=cr&q=ckeditor%20%26nbsp#

So it would be good if Ckeditor could help with that.

I see different things that could be done. This is just brainstorming, some ideas sound flapsy while typing...

  • A button that replaces all occurances of &nbsp with simple spaces. Maybe it also could show a number of matches first, and ask if there might be some intentional &nbsp 's. Or, i think maybe it should just act like the search-replace function, where you could go through step-by step or just replace all. Finding nbsp's in source and highlighting them one by one sounds like not too hard (for a coder, not me).
  • There could be a constantly visible counter/alert for the presence of &nbsp's, similar to the char count plugins.
  • Maybe add a feature to highlight the nbsp's in wysiwyg mode so they can be removed/approved easily.
  • Maybe an ACF Filter could always do the replacement on-save, or however ACF works, i'm not familiar with that.

Other ideas on how to improve the situation?

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy