/** * @requires macro/Base.js */ xq.macro.IFrameMacro = xq.Class(xq.macro.Base, /** * IFrame macro * * @name xq.macro.IFrameMacro * @lends xq.macro.IFrameMacro.prototype * @extends xq.macro.Base * @constructor */ { initFromHtml: function() { this.params.html = this.html; }, initFromParams: function() { if(this.params.html) return; var sb = []; sb.push(''); this.params = {html:sb.join("")}; }, createHtml: function() { return this.params.html; } }); xq.macro.IFrameMacro.recognize = function(html) { var p = xq.compilePattern("]+(?:/>|>.*?)", "img"); return !!html.match(p); }