Loading...
 
Skip to main content

Code Plugin with WYSIWYG editor

Status
Open
Subject
Code Plugin with WYSIWYG editor
Version
18.x
Category
  • Bug
Feature
Wiki Plugin (extends basic syntax)
Resolution status
New
Submitted by
Wiebe
Lastmod by
Wiebe
Rating
(0)
Description

We use the code plugin with the Full WYSIWYG editor to display code snippets.
- Support Tiki's "wiki syntax" is checked
- Limited wiki parsing is unchecked
- Use Wiki syntax in WYSIWYG is unchecked
(in order to create true html wiki pages with some wiki syntax for plugins)

Steps to reproduce:

  • Use code button in WYSIWYG editor, put some code in the body section and click save
Original code snippet
Copy to clipboard
#include <iostream> using namespace std; int main() { cout << "Hello, World!"; return 0; }
  • Clicking again on the plugin (or saving the page and view) will give you this distorted code snippet:
Code snippet after first save
Copy to clipboard
#include &lt;iostream&gt;<br>using namespace std;int main() <br>{<br>    cout &lt;&lt; "Hello, World!";<br>    return 0;<br>}
  • Paste again the code snippet in the plugin and click save
  • Code is displayed correctly
Code snippet after second save
Copy to clipboard
#include &lt;iostream&gt; using namespace std; int main() { cout &lt;&lt; &quot;Hello, World!&quot;; return 0; }


As the workaround is simple but annoying, I suppose this is quite easy to fix, is there someone who can check this out?

Importance
5
Easy to solve?
9
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6624
Created
Friday 20 April, 2018 07:54:42 UTC
by Wiebe
LastModif
Friday 20 April, 2018 07:54:42 UTC


Show PHP error messages