posted by leanne on September 5, 2008 | 0 comments
Go to Profile and click on 'creat'.

Tip: don't waste your time on format, because it doesn't recognize it. Just make it neat in Word, it will be fine.
signin to comment
trevelyan on September 6, 2008 | reply
Actually, the system supports most HTML markup, so it's possible to stylize text if you know basic HTML. You can put text in <b>bold</b>,<i>italicize</i> it or even <u>underline</u> it. You can also:

  1. create numbered lists
  2. add funky colors
  3. use the blink tag

...and do anything else HTML lets you do. To keep viewers safe we remove anything from the HTML that might be a security threat before saving it, including javascript, iframes and most flash (embedded Youtube videos are allowed). It's also not a great idea to use too much markup, since the lesson introduction is used in the PDF, and we strip out all of the HTML before putting it in.
imron on September 6, 2008 | reply
Are you really removing the javascript?
trevelyan on September 7, 2008 | reply
@imron -- yes on the javascript filtering. As your posts showed, it was getting through in some of your comments before. That was a case of comments not being properly filtered and has been corrected.

The filtering happens when the content is saved into our database. This means it's possible to insert javascript into your own lesson while you're building it, but it will be removed before being saved on the server. So user-added scripts will never be served out to anyone else.

Main goal of handling things this way is to keep the editing features responsive. No real need to make people wait for the server to save content in most cases. One exception is when we save annotated texts, and because of the complexity of the changes involve wait for confirmation edits have been properly saved before continuing.
imron on September 7, 2008 | reply
You might want to double-check this for the lessons. For example, in the "text" section of test lesson I created, http://popupchinese.com/lessons/archive/imron/test-lesson/text it serves up the javascript I inserted when I view that lesson as a different user.
trevelyan on September 7, 2008 | reply
yeah - it's fixed. Did a clean sweep of the whole site - thx. Looks like you can still leave blank comments - will get on that too.
imron on September 7, 2008 | reply
Actually, that wasn't a blank comment, that was a comment with me trying to put in javascript, except that it all got stripped out :-) Actually, rather than stripping out tags/javascript, I find it far more effective just to convert all <tags> to &lt;tags&ampgt;, with the exception of a couple of formatting tags that you wish to allow.
imron on September 7, 2008 | reply
doh, stuffed up my &gt; in the above post, but I'm sure you get the idea. See my other comment about the need for a way to preview posts :-)

Doing this means that if someone tries to insert code like <script type="text/javascript"> do something nasty </script> it will just appear as harmless text, rather than an actual script.
leanne on September 9, 2008 | reply
Can it be more user friendly? Just think I'm a dummy of computer but eager to learn the language.
marco64 on September 10, 2008 | reply
haven't published a lesson yet myself, but when I clicked through the process seemed pretty easy.

I agree with leanne that it would be a big improvement to have a WYSIWYG editor instead of just a plain white textbox. You could implement this with fckeditor pretty easily - it's pretty standards compliant and works entirely with javascript.