| 504 | // hack for a |
| 505 | // 1<a href='http://www.taobao.com'>2</a>3 |
| 506 | // select all ,set link to http://www.ckeditor.com |
| 507 | // expect => <a href='http://www.ckeditor.com'>123</a> (same with tinymce) |
| 508 | // but ckeditor now => <a href="http://www.ckeditor.com">1</a> |
| 509 | // <a href="http://www.taobao.com">2</a> |
| 510 | // <a href="http://www.ckeditor.com">3</a> |
| 511 | if (currentParent && elementName == "a" && currentParent.getName() == elementName) { |
| 512 | var tmpANode = getElement(this, document); |
| 513 | currentParent.moveChildren(tmpANode); |
| 514 | currentParent.$.parentNode.replaceChild(tmpANode.$, currentParent.$); |
| 515 | tmpANode.mergeSiblings(); |
| 516 | } |
| 517 | |