ID

Uploaded

Status

Description

Work Items

Action

11452
by nvallet
Feb 10, 2012
7:23 AM

Being evaluated

Hi Anthony. First, I'd like to thank you for awesome work with Clean Paste.

I noticed cleaning does not happen in Safari/Firefox on Mac when I select some content in editor and then paste some new content to replace it. It looks like inserthtml command does not really in such case.

I did the slight following change in code and it looks good to me : Before calling the inserthtml method, I check whether some content has been selected in editor. In such case, I replace selected content by #Cleaner <div> instead of doing an inserthtml.

CleanPaste.prototype.InsertContainer = function() {
if (this.Editor.currentElement[0]) {
this.Editor.currentElement[0].innerHTML = "<div id='Cleaner'>_</div>";
} else {
this.Editor.execCommand('inserthtml', "<div id='Cleaner'>_</div>");
}
var container = this.Editor._getDoc().getElementById('Cleaner');
this.Editor._selectNode(container);
}

I don't know if you're still active on Clean Paste. I'd be happy that you tell me what you think. Thanks again for Clean Paste :-)

Cheers,
Nicolas from France

Download

7873
by kaminda
Dec 24, 2010
12:15 PM

Being evaluated

There were some problem coming when you paste data form external document like word document So the word tags are not going to remove .These have been handled in this file and also it maintain the breaks in the Data .

Download

View All
  • 1-2 of 2 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches