HTML Editor strips CSS

HTML Editor strips CSS

by norman peterson -
Number of replies: 2
Could somebody please explain me how to stop HTML editor stripping CSS styles, defined with <style>...</style> in source code. I've investigated all places in MOODLE and in editor where stripping could occure but couldn't find anything with "Style".
The problem is that I use some CSS in book HTML and the course has to be portable to other system (by Backup/restore, I suppose) without altering the moodle configuration or adding style to book's default stylesheet (which is currently done).
Plz. help! Thanx.
Average of ratings: -
In reply to norman peterson

Re: HTML Editor strips CSS

by N Hansen -
You should ask this question in the themes or the HTML editor forum because this is not a book-specific issue.
In reply to norman peterson

Re: HTML Editor strips CSS

by Janne Mikkonen -
As far as I know <style> tag isn't allowed within <body>, but most likely in your weblib's (/lib/weblib.php) $ALLOWED_TAGS variable doesn't contain <style> tag.

- Janne -