75c75,76
<     var anchor = a.href.match(/^#(.*)$/);
---
>     var strippedHref = (this.editor.config.stripBaseHref && this.editor.config.baseHref ? a.href.replace(this.editor.config.baseHref, '') : a.href); 
>     var anchor = strippedHref.match(/^#(.*)$/);
98c99
<       inputs.anchor = m[1];
---
>       inputs.anchor = anchor[1];
109c110
<         inputs.href   = a.href ? a.href : '';
---
>         inputs.href   = strippedHref ? strippedHref : '';
132c133
<         inputs.href   = a.href;
---
>         inputs.href   = strippedHref;
483,484c484,485
<   for(var i=0;i<anchor.childNodes.length;i++) {
<     anchor.removeChild(anchor.childNodes[i]);
---
>   while (anchor.firstChild) {
>       anchor.removeChild(anchor.firstChild);
499c500
<   m = html.match(/id="([^"]+)"/gi);
---
>   m = html.match(/<a[^>]+id="([^"]+)"/gi);
513a515,517
>     if (inputs.anchor == anchors[i]) {
>         opt.selected = true;
>     }
557c561
< };
\ No newline at end of file
---
> };

