Loading...
 
Skip to main content

WYSIWYG editor removes certain syntax (such as "~np~") from the page

Status
Closed
Subject
WYSIWYG editor removes certain syntax (such as "~np~") from the page
Version
24.x
Category
  • Bug
Feature
WYSIWYG (What You See is What You Get)
Resolution status
New
Submitted by
Volker Wysk
Lastmod by
Volker Wysk
Rating
(0)
Description

The WYSIWYG editor removes some syntax from the page. Such as "~np~...~/np~". It also converts characters, which are specified with the "~NNN~" syntax to ordinary characters.

To reproduce:

- Create a new page with the non-WYSIWYG editor.
- Enter "~np~! XX~/np~"
- Save the page. It shows up as intended: "! XX"
- Open the page and switch to the WYSIWYG editor.
- Click on "Save". Now the "XX" shows up as a heading.
- Open the page again and switch to the non-WYSIWYG editor. The "~np~" and "~/np~" parts have vanished.

With quoted characters, such as "~033~" it's similar. They get converted to non-quoted characters when the page is opened in the WYSIWYG editor and are saved that way when the page is saved.

This bug makes the WYSIWYG editor next to unusable.

Solution

Jonny Bradley wrote on tikiwiki-users:

"Yes, WYSIWYG doesn't work well with some "advanced" wiki syntax, best to use the wiki editor if you want non-parsed sections etc. Have you found the wysiwyg plugin? You can make one (or more) part/s of the page WYSIWYG editable and edit the "tricky" bits in wiki markup elsewhere.

"We are planning (should have started 😉 an upgrade/replacement of the wysiwyg editor in tiki for 25+ and a gradual switch to markdown syntax over the next few versions, so there isn't likely to be much effort going into fix the legacy CKEditor now i'm afraid."

Importance
9
Easy to solve?
5
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8135
Created
Monday 04 April, 2022 12:32:44 UTC
by Volker Wysk
LastModif
Wednesday 20 July, 2022 09:20:21 UTC


Show PHP error messages