ed.windowManager.alert("Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.");
}else{
ed.windowManager.alert("Paste is now in plain text mode. Click again to toggle back to regular paste mode.");
// Replace nsbp entites to char since it's easier to handle
[/ /gi,"\u00a0"]
]);
// Remove bad attributes, with or without quotes, ensuring that attribute text is really inside a tag.
// If JavaScript had a RegExp look-behind, we could have integrated this with the last process() array and got rid of the loop. But alas, it does not, so we cannot.