Ticket #196 (closed defect: fixed)
Error in Internet Explorer 8 when using multiple css selectors in editor styles
Reported by: | jan | Owned by: | jf.hovinne |
---|---|---|---|
Priority: | minor | Milestone: | 0.5 |
Component: | editor | Version: | trunk |
Keywords: | Cc: |
Description
When using multiple CSS selector in the editor styles, there's an ugly error in Internet Explorer 8. By using the script debugger, I could locate the error to the following code: styles.addRule(oCss.name, oCss.css)
Here's an example editor style: {'name': 'h1[id],h2[id],h3[id],h4[id],h5[id],h6[id]', 'css': 'border-left: 10px solid #fc8;' }
You can fins a full example in my CMS "cms -db", it exists in version 0.7.13 which can be downloaded at http://cms-db.de/download/ I worked around the issue in the current testing version by separating the style into 6 different ones for the headings, available at http://staging.cms-db.de/
Change History
comment:2 Changed 2 years ago by jan
I've set up a small test page with descriptions on http://cms-db.de/wymeditor-bug-196/.
I don't know what exactly is the source of the error, but it seems that IE 8 doesn't like comma-separated selectors in the editorStyles. See the example code in the test page. I've put everything I could find out about the error on the test page.
Exactly what error is reported? And do you have any idea what's causing it? I really don't have the time download your cms and try it myself, sorry.