Bug #37365
ImageMap cannot be edited anymore since TYPO3 4.7
| Status: | New | Start date: | 2012-05-21 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 5 (View) |
Description
Reason: Incompatible regexp that doesn't supported HTML syntax (missing ending slash on an image tag). See attached patch...
History
Updated by Stefan Galinski about 1 year ago
- File imagemapwizard_37365.diff added
Updated by Jonas Götze 7 months ago
same issue - above patch worked for me.
Updated by Gabriel Kaufmann / Typoworx NewMedia 2 months ago
Nice work. I was just about to post a similar patch for TYPO3 4.7.7!
Just a suggestion to improve the RegExp... removing the "\/" before the closing-tag will not hurt as the leading "[^>]*" will match the closing-tag anyway (no matter which chars will come before).
Use this instead for the patch (see file attached):
if (!preg_match('/(<img[^>]+usemap="#[^"]+"[^>]*>)/', $result, $matches)) {
// ...