Forum closed. New forum available at

editor removes source codes from programming tutorials

Support forum for WYMeditor.

editor removes source codes from programming tutorials

Postby wmac on Sun Jan 10, 2010 3:17 pm


I have used wymeditor for an e-learning platform.

The problem happens when a tutor wants to include codes as part of the
lessons (the source code needs to be shown to students e.g. in
programming examples).

I expected wymeditor to convert the codes (html, php, etc) into
htmlspecialchars and they can be used without problem.


- Tutor includes "html code" in lesson text (to teach how to write a
simple html page for example). After POST action happens, the html
code is converted into html special chars, saved into database
correctly and can be viewed correctly later (the source code shown to
students , as we wanted).

like this one:

Code: Select all
<TITLE>Example 4-3</TITLE>
This is a list of subjects covered in this lesson:
<LI>Text Links
<LI>Image Links
<LI>Email Links
<LI>List of Items

- However if the tutor tries to edit the text, all those encoded codes
are removed when the text is loaded into richtext box and the
whole lesson text becomes useless.

I'll appreciate if someone can help.

Posts: 3
Joined: Sun Jan 10, 2010 3:12 pm

Re: editor removes source codes from programming tutorials

Postby mr_lundis on Mon Feb 01, 2010 10:12 am

Could you provide some more details on how you initialize the editor? It's hard for me to tell if this is a WYM bug or if is a problem with your implementation. I have played around a little bit with special chars in the editor, but I haven't found any occasions on which the editor breaks or removes these characters.

Cheers! ;)
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests