HTML Editor strips CSS

HTML Editor strips CSS

av norman peterson -
Antall svar: 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.
Gjennomsnittlig vurdering: -
Som svar til norman peterson

Re: HTML Editor strips CSS

av N Hansen -
You should ask this question in the themes or the HTML editor forum because this is not a book-specific issue.
Som svar til norman peterson

Re: HTML Editor strips CSS

av 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 -