Ticket #196 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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:1 Changed 2 years ago by mr_lundis

  • Priority changed from major to minor

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.

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.

comment:3 Changed 2 years ago by mr_lundis

  • Status changed from new to closed
  • Resolution set to fixed

Fix in r667.

Note: See TracTickets for help on using tickets.