I'm trying to configure the Wysiwyg module for my site via the
pattern tag and have come up on an issue. The form values which need to be set have the following field name:

formats[1][editor] = ...

In the
tag the XML would look as follows:

<1>...

But of course the <1> tag is invalid in XML. To workaround this issue I've patched system.inc such that you can write the above as follows:

<__1__>...

The patch code will trim off '__' edges from the tag name once it has been loaded into memory as an array. It uses regular expression matching so other uses of the underscore in tag names won't be affected.

CommentFileSizeAuthor
system.inc_.patch2.27 KBhiddentao
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vaish’s picture

Hi hiddentao,

Please have a look at: http://drupal.org/node/514234#comment-2926808
That's a workaround for this same issue I implemented and committed some time ago.

vaish’s picture

Status: Needs review » Closed (duplicate)