View Issue Details

IDProjectCategoryView StatusLast Update
238Composr website (compo.sr)General / Uncategorisedpublic2011-05-21 16:32
ReporterGuest Assigned ToChris Graham  
PrioritylowSeverityminor 
Status resolvedResolutionfixed 
Summary238: New WYSIWYG editor mangles HTML in [code]
DescriptionWriting HTML in a Comcode tag [code="HTML"] seems to work, but writing for example [code="PHP"]echo 'http://www.google.com';[/code] will convert that string into actual HTML. This is also highly annoying when putting "<?php", since the editor treats the rest of the page as a HTML element until it finds a corresponding ">", throwing away comcode tags in the process (such as closing [/code] tags).

I'm assuming this is inherent to Composr's new WYSIWYG editor, but I've not used it outside compo.sr and dev sites.
Steps To Reproduce1) Make a forum post with WYSIWYG on
2) Include some PHP, including the opening PHP tag, inside a comcode "code" block with the language PHP
3) Press "Preview"
4) The text in the WYSIWYG area will be partially converted to HTML, and submitting the post in that state won't produce the expected results (compared to the non-previewed original).
TagsNo tags attached.
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Guest

2011-02-01 05:06

reporter   ~113

I should've expected it, but the anchor in my first example was not meant to be parsed by Mantis :)

Issue History

Date Modified Username Field Change
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised