#565 - Problems with switching WYSIWYG editor on/off, and more

Identifier #565
Issue type Minor issue (breaks specific functionality)
Title Problems with switching WYSIWYG editor on/off, and more
Status Completed
Handling member Chris Graham
Version 8.1
Addon General / Uncategorised
Description 1) If the magical "#8203;" character becomes detached from it's position next to a Comcode tag, the Comcode conversion won't know to remove it. Fix that.

2) Doing a WYSIWYG 'discard' should not be an option if the Comcode being edited has been rendered in 'semi parse mode' for the WYSIWYG editor, because WYSIWYG-intended code would then be brought outside the WYSIWYG editor. This might not be a real bug, but the code should be more careful about this.

3) Comcode conversion when the magical '​' character is there can cause major problems if the site is not in utf-8 and the site doesn't have iconv or mbstring PHP extensions. This is because it can't deal with the utf-8 version of '​' that Javascript passes and will leave it as some corrupt ISO-8859-1 characters instead. Solution: strip '​' before asking the server to do a Comcode conversion.
Steps to reproduce

Funded? No
Commits

c28a965

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated