Ticket #801: patch.diff

File patch.diff, 974 bytes (added by smithda5@…, 13 years ago)

A possible fix.

Line 
175c75,76
2<     var anchor = a.href.match(/^#(.*)$/);
3---
4>     var strippedHref = (this.editor.config.stripBaseHref && this.editor.config.baseHref ? a.href.replace(this.editor.config.baseHref, '') : a.href);
5>     var anchor = strippedHref.match(/^#(.*)$/);
698c99
7<       inputs.anchor = m[1];
8---
9>       inputs.anchor = anchor[1];
10109c110
11<         inputs.href   = a.href ? a.href : '';
12---
13>         inputs.href   = strippedHref ? strippedHref : '';
14132c133
15<         inputs.href   = a.href;
16---
17>         inputs.href   = strippedHref;
18483,484c484,485
19<   for(var i=0;i<anchor.childNodes.length;i++) {
20<     anchor.removeChild(anchor.childNodes[i]);
21---
22>   while (anchor.firstChild) {
23>       anchor.removeChild(anchor.firstChild);
24499c500
25<   m = html.match(/id="([^"]+)"/gi);
26---
27>   m = html.match(/<a[^>]+id="([^"]+)"/gi);
28513a515,517
29>     if (inputs.anchor == anchors[i]) {
30>         opt.selected = true;
31>     }
32557c561
33< };
34\ No newline at end of file
35---
36> };