HTML filters and unformatted HTML code

genox - September 24, 2009 - 17:23
Project:Signwriter
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I experienced the following behavior of Signwriter, using the built-in output filters:

- WYSIWYG API + TinyMCE (latest)
- "Format Source code" turned off
- Filterpattern: /

.*?<\/h3>/
- H3 filter turned on for all formats

=> While parsing the HTML for the tag, only the first occurrence of the tag gets converted to an image. Also, the text after the occurrence is not being displayed at all: The following paragraphs just get lost.

Workaround: Turn on "Format Sourcecode" in the WYSIWYG API profile of TinyMCE.

Maybe the regex needs some tweaking if more than one occurrences of a search pattern per line exist? I suck at regex, otherwise I'd probably suggest something, but for now I'll be happy to receive a hint. :-)

Thanks,

Oliver

#1

Justin W Freeman - October 1, 2009 - 02:39

It is known that signwriter doesn't play very nice with WYSIWYG at the moment.

The changes in #516872: More flexible filter will hopefully address that problem so keep an eye on that thread. I hope to have time to address that one soon.

#2

genox - October 1, 2009 - 08:41

Thanks for the link, will do. :)

 
 

Drupal is a registered trademark of Dries Buytaert.