symphonycms2-extensions / richtext_redactor

Rich Text Formatter implementation for Symphony CMS using RedactorJS
Other
5 stars 8 forks source link

A fix for IE8 #10

Open mgussekloo opened 11 years ago

mgussekloo commented 11 years ago

Just something I discovered: Making sure the formatterredactor::run() method uses case-insensitive preg_replace enables Redactor in IE8. Formatter.redactor.php, line 17:

$string = preg_replace('/<(img|hr|br|link|meta|input|param|base|area|meta)((\s+\w+(\s*=\s*("[^"]*"|\'[^\']*\'|\w+))?)*)\s*>/i', '<$1$2/>', $string);