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
- 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 snippetCopy 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 saveCopy to clipboard#include <iostream><br>using namespace std;int main() <br>{<br> cout << "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 saveCopy to clipboard#include <iostream> using namespace std; int main() { cout << "Hello, World!"; 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 6624
- Created
- Friday 20 April, 2018 07:54:42 UTC
by Wiebe - LastModif
- Friday 20 April, 2018 07:54:42 UTC