X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-debug.js;h=1c84d1189457c1df2d275187b0faebbb5bad5242;hp=6d0b5fb8282cbc21e04bbf46361e9a083f88db4c;hb=refs%2Fheads%2Fwip_alan_T7162_warnings_on_files;hpb=5b3eb17363191fab59831ea242463c5a422dc488 diff --git a/roojs-debug.js b/roojs-debug.js index 6d0b5fb828..1c84d11894 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -46354,33 +46354,6 @@ Roo.apply(Roo.htmleditor.FilterBlock.prototype, }); -/** - * @class Roo.htmleditor.FilterAttributes - * clean attributes and styles including http:// etc.. in attribute - * @constructor -* Run a new Attribute Filter -* @param {Object} config Configuration options - */ -Roo.htmleditor.FilterFileWarning = function(cfg) -{ - - var atag = cfg.node.getElementsByTagName('a'); - for(var i =0; i < atags.length;i++) { - var str = '' + atags.item(i).getAttribute('href'); - if (str.match(/^file:/)) { - throw new Exception ("got file url"); - } - } - // less likely - atag = cfg.node.getElementsByTagName('img'); - for(var i =0; i < atags.length;i++) { - var str = '' + atags.item(i).getAttribute('src'); - if (str.match(/^file:/)) { - throw new Exception ("got file url"); - } - } -} - /*** * This is based loosely on tinymce * @class Roo.htmleditor.TidySerializer @@ -50191,12 +50164,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { if (this.enableBlocks) { Roo.htmleditor.Block.initAll(this.doc.body); } - - try { - new Roo.htmleditor.FilterFileWarning({ node : d }); - } catch(e) { - Roo.MessageBox.alert("Invalid URLS in content", "The pasted Content contains file:// URLS - you probably want to check all the links in this file"); - } + e.preventDefault(); return false;