Ticket #238 (closed Bug: fixed)
Case insensitve onClick for popup-windowns
| Reported by: | s1738berger | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.4.1 |
| Component: | General | Version: | FCKeditor 2.4 |
| Keywords: | Cc: |
Description
Hi would be nice if the regex in 'fck_link.js' not only match 'onClick', but also on 'onclick'. I use to clean the prodced HTML-code with HTML Tidy that changes all attributes to lowercase.
Here the part that could be changed: // Accesible popups oRegex.OnClickPopup = new RegExp() ; oRegex.OnClickPopup.compile( "\\s*on[cC]lick=\"\\s*window.open\\(\\s*this\\.href\\s*,\\s*(?:'([']*)'|null)\\s*,\\s*'([']*)'\\s*\\)\\s*;\\s*return\\s*false;*\\s*\"$" ) ; or maybe make the regex case insensitive at all.
Thanks for your work. Stefan
Change History
Note: See
TracTickets for help on using
tickets.