text: /*
  YUI 3.13.0 (build 508226d)
  Copyright 2013 Yahoo! Inc. All rights reserved.
  Licensed under the BSD License.
  http://yuilibrary.com/license/
  */
  
  if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
  if (!__coverage__['build/editor-para-base/editor-para-base.js']) {
     __coverage__['build/editor-para-base/editor-para-base.js'] = {"path":"build/editor-para-base/editor-para-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":47}}},"2":{"name":"(anonymous_2)","line":14,"loc":{"start":{"line":14,"column":25},"end":{"line":14,"column":36}}},"3":{"name":"(anonymous_3)","line":26,"loc":{"start":{"line":26,"column":18},"end":{"line":26,"column":29}}},"4":{"name":"(anonymous_4)","line":35,"loc":{"start":{"line":35,"column":23},"end":{"line":35,"column":34}}},"5":{"name":"(anonymous_5)","line":58,"loc":{"start":{"line":58,"column":27},"end":{"line":58,"column":38}}},"6":{"name":"(anonymous_6)","line":72,"loc":{"start":{"line":72,"column":29},"end":{"line":72,"column":40}}},"7":{"name":"(anonymous_7)","line":83,"loc":{"start":{"line":83,"column":21},"end":{"line":83,"column":32}}},"8":{"name":"(anonymous_8)","line":86,"loc":{"start":{"line":86,"column":30},"end":{"line":86,"column":41}}},"9":{"name":"(anonymous_9)","line":91,"loc":{"start":{"line":91,"column":21},"end":{"line":91,"column":32}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":131,"column":44}},"2":{"start":{"line":14,"column":4},"end":{"line":17,"column":42}},"3":{"start":{"line":15,"column":8},"end":{"line":15,"column":69}},"4":{"start":{"line":20,"column":4},"end":{"line":122,"column":7}},"5":{"start":{"line":27,"column":12},"end":{"line":27,"column":69}},"6":{"start":{"line":36,"column":12},"end":{"line":39,"column":53}},"7":{"start":{"line":41,"column":12},"end":{"line":44,"column":13}},"8":{"start":{"line":42,"column":16},"end":{"line":42,"column":26}},"9":{"start":{"line":43,"column":16},"end":{"line":43,"column":28}},"10":{"start":{"line":46,"column":12},"end":{"line":46,"column":94}},"11":{"start":{"line":48,"column":12},"end":{"line":48,"column":34}},"12":{"start":{"line":49,"column":12},"end":{"line":49,"column":45}},"13":{"start":{"line":51,"column":12},"end":{"line":51,"column":41}},"14":{"start":{"line":59,"column":12},"end":{"line":59,"column":71}},"15":{"start":{"line":60,"column":12},"end":{"line":65,"column":13}},"16":{"start":{"line":61,"column":16},"end":{"line":61,"column":52}},"17":{"start":{"line":62,"column":16},"end":{"line":62,"column":62}},"18":{"start":{"line":63,"column":16},"end":{"line":63,"column":38}},"19":{"start":{"line":64,"column":16},"end":{"line":64,"column":25}},"20":{"start":{"line":73,"column":12},"end":{"line":73,"column":65}},"21":{"start":{"line":74,"column":12},"end":{"line":76,"column":13}},"22":{"start":{"line":75,"column":16},"end":{"line":75,"column":52}},"23":{"start":{"line":84,"column":12},"end":{"line":84,"column":65}},"24":{"start":{"line":86,"column":12},"end":{"line":88,"column":15}},"25":{"start":{"line":87,"column":16},"end":{"line":87,"column":52}},"26":{"start":{"line":92,"column":12},"end":{"line":92,"column":38}},"27":{"start":{"line":93,"column":12},"end":{"line":96,"column":13}},"28":{"start":{"line":94,"column":16},"end":{"line":94,"column":82}},"29":{"start":{"line":95,"column":16},"end":{"line":95,"column":23}},"30":{"start":{"line":98,"column":12},"end":{"line":98,"column":70}},"31":{"start":{"line":99,"column":12},"end":{"line":99,"column":80}},"32":{"start":{"line":100,"column":12},"end":{"line":102,"column":13}},"33":{"start":{"line":101,"column":16},"end":{"line":101,"column":72}},"34":{"start":{"line":124,"column":4},"end":{"line":124,"column":26}},"35":{"start":{"line":126,"column":4},"end":{"line":126,"column":45}}},"branchMap":{"1":{"line":39,"type":"cond-expr","locations":[{"start":{"line":39,"column":39},"end":{"line":39,"column":43}},{"start":{"line":39,"column":46},"end":{"line":39,"column":51}}]},"2":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":12},"end":{"line":41,"column":12}},{"start":{"line":41,"column":12},"end":{"line":41,"column":12}}]},"3":{"line":60,"type":"if","locations":[{"start":{"line":60,"column":12},"end":{"line":60,"column":12}},{"start":{"line":60,"column":12},"end":{"line":60,"column":12}}]},"4":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":12},"end":{"line":74,"column":12}},{"start":{"line":74,"column":12},"end":{"line":74,"column":12}}]},"5":{"line":74,"type":"binary-expr","locations":[{"start":{"line":74,"column":16},"end":{"line":74,"column":20}},{"start":{"line":74,"column":24},"end":{"line":74,"column":44}}]},"6":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":12},"end":{"line":93,"column":12}},{"start":{"line":93,"column":12},"end":{"line":93,"column":12}}]},"7":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":12},"end":{"line":100,"column":12}},{"start":{"line":100,"column":12},"end":{"line":100,"column":12}}]}},"code":["(function () { YUI.add('editor-para-base', function (Y, NAME) {","","","    /**","     * Base Plugin for Editor to paragraph auto wrapping and correction.","     * @class Plugin.EditorParaBase","     * @extends Base","     * @constructor","     * @module editor","     * @submodule editor-para-base","     */","","","    var EditorParaBase = function() {","        EditorParaBase.superclass.constructor.apply(this, arguments);","    }, HOST = 'host',","    FIRST_P = '> p', P = 'p', BR = '<br>';","","","    Y.extend(EditorParaBase, Y.Base, {","        /**","        * Resolves the ROOT editor element.","        * @method _getRoot","        * @private","        */","        _getRoot: function() {","            return this.get(HOST).getInstance().EditorSelection.ROOT;","        },","","        /**","        * Utility method to create an empty paragraph when the document is empty.","        * @private","        * @method _fixFirstPara","        */","        _fixFirstPara: function() {","            var host = this.get(HOST), inst = host.getInstance(), sel, n,","                root = this._getRoot(),","                html = root.getHTML(),","                col = ((html.length) ? true : false);","","            if (html === BR) {","                html = '';","                col = false;","            }","","            root.setHTML('<' + P + '>' + html + inst.EditorSelection.CURSOR + '</' + P + '>');","","            n = root.one(FIRST_P);","            sel = new inst.EditorSelection();","","            sel.selectNode(n, true, col);","        },","        /**","        * Performs a block element filter when the Editor is first ready","        * @private","        * @method _afterEditorReady","        */","        _afterEditorReady: function() {","            var host = this.get(HOST), inst = host.getInstance(), btag;","            if (inst) {","                inst.EditorSelection.filterBlocks();","                btag = inst.EditorSelection.DEFAULT_BLOCK_TAG;","                FIRST_P = '> ' + btag;","                P = btag;","            }","        },","        /**","        * Performs a block element filter when the Editor after an content change","        * @private","        * @method _afterContentChange","        */","        _afterContentChange: function() {","            var host = this.get(HOST), inst = host.getInstance();","            if (inst && inst.EditorSelection) {","                inst.EditorSelection.filterBlocks();","            }","        },","        /**","        * Performs block/paste filtering after paste.","        * @private","        * @method _afterPaste","        */","        _afterPaste: function() {","            var host = this.get(HOST), inst = host.getInstance();","","            Y.later(50, host, function() {","                inst.EditorSelection.filterBlocks();","            });","","        },","        initializer: function() {","            var host = this.get(HOST);","            if (host.editorBR) {","                Y.error('Can not plug EditorPara and EditorBR at the same time.');","                return;","            }","","            host.after('ready', Y.bind(this._afterEditorReady, this));","            host.after('contentChange', Y.bind(this._afterContentChange, this));","            if (Y.Env.webkit) {","                host.after('dom:paste', Y.bind(this._afterPaste, this));","            }","        }","    }, {","        /**","        * editorPara","        * @static","        * @property NAME","        */","        NAME: 'editorParaBase',","        /**","        * editorPara","        * @static","        * @property NS","        */","        NS: 'editorParaBase',","        ATTRS: {","            host: {","                value: false","            }","        }","    });","","    Y.namespace('Plugin');","","    Y.Plugin.EditorParaBase = EditorParaBase;","","","","","}, '3.13.0', {\"requires\": [\"editor-base\"]});","","}());"]};
  }
  var __cov_2qThWa_uIngTPOkA1ujwjg = __coverage__['build/editor-para-base/editor-para-base.js'];
  __cov_2qThWa_uIngTPOkA1ujwjg.s['1']++;YUI.add('editor-para-base',function(Y,NAME){__cov_2qThWa_uIngTPOkA1ujwjg.f['1']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['2']++;var EditorParaBase=function(){__cov_2qThWa_uIngTPOkA1ujwjg.f['2']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['3']++;EditorParaBase.superclass.constructor.apply(this,arguments);},HOST='host',FIRST_P='> p',P='p',BR='<br>';__cov_2qThWa_uIngTPOkA1ujwjg.s['4']++;Y.extend(EditorParaBase,Y.Base,{_getRoot:function(){__cov_2qThWa_uIngTPOkA1ujwjg.f['3']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['5']++;return this.get(HOST).getInstance().EditorSelection.ROOT;},_fixFirstPara:function(){__cov_2qThWa_uIngTPOkA1ujwjg.f['4']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['6']++;var host=this.get(HOST),inst=host.getInstance(),sel,n,root=this._getRoot(),html=root.getHTML(),col=html.length?(__cov_2qThWa_uIngTPOkA1ujwjg.b['1'][0]++,true):(__cov_2qThWa_uIngTPOkA1ujwjg.b['1'][1]++,false);__cov_2qThWa_uIngTPOkA1ujwjg.s['7']++;if(html===BR){__cov_2qThWa_uIngTPOkA1ujwjg.b['2'][0]++;__cov_2qThWa_uIngTPOkA1ujwjg.s['8']++;html='';__cov_2qThWa_uIngTPOkA1ujwjg.s['9']++;col=false;}else{__cov_2qThWa_uIngTPOkA1ujwjg.b['2'][1]++;}__cov_2qThWa_uIngTPOkA1ujwjg.s['10']++;root.setHTML('<'+P+'>'+html+inst.EditorSelection.CURSOR+'</'+P+'>');__cov_2qThWa_uIngTPOkA1ujwjg.s['11']++;n=root.one(FIRST_P);__cov_2qThWa_uIngTPOkA1ujwjg.s['12']++;sel=new inst.EditorSelection();__cov_2qThWa_uIngTPOkA1ujwjg.s['13']++;sel.selectNode(n,true,col);},_afterEditorReady:function(){__cov_2qThWa_uIngTPOkA1ujwjg.f['5']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['14']++;var host=this.get(HOST),inst=host.getInstance(),btag;__cov_2qThWa_uIngTPOkA1ujwjg.s['15']++;if(inst){__cov_2qThWa_uIngTPOkA1ujwjg.b['3'][0]++;__cov_2qThWa_uIngTPOkA1ujwjg.s['16']++;inst.EditorSelection.filterBlocks();__cov_2qThWa_uIngTPOkA1ujwjg.s['17']++;btag=inst.EditorSelection.DEFAULT_BLOCK_TAG;__cov_2qThWa_uIngTPOkA1ujwjg.s['18']++;FIRST_P='> '+btag;__cov_2qThWa_uIngTPOkA1ujwjg.s['19']++;P=btag;}else{__cov_2qThWa_uIngTPOkA1ujwjg.b['3'][1]++;}},_afterContentChange:function(){__cov_2qThWa_uIngTPOkA1ujwjg.f['6']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['20']++;var host=this.get(HOST),inst=host.getInstance();__cov_2qThWa_uIngTPOkA1ujwjg.s['21']++;if((__cov_2qThWa_uIngTPOkA1ujwjg.b['5'][0]++,inst)&&(__cov_2qThWa_uIngTPOkA1ujwjg.b['5'][1]++,inst.EditorSelection)){__cov_2qThWa_uIngTPOkA1ujwjg.b['4'][0]++;__cov_2qThWa_uIngTPOkA1ujwjg.s['22']++;inst.EditorSelection.filterBlocks();}else{__cov_2qThWa_uIngTPOkA1ujwjg.b['4'][1]++;}},_afterPaste:function(){__cov_2qThWa_uIngTPOkA1ujwjg.f['7']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['23']++;var host=this.get(HOST),inst=host.getInstance();__cov_2qThWa_uIngTPOkA1ujwjg.s['24']++;Y.later(50,host,function(){__cov_2qThWa_uIngTPOkA1ujwjg.f['8']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['25']++;inst.EditorSelection.filterBlocks();});},initializer:function(){__cov_2qThWa_uIngTPOkA1ujwjg.f['9']++;__cov_2qThWa_uIngTPOkA1ujwjg.s['26']++;var host=this.get(HOST);__cov_2qThWa_uIngTPOkA1ujwjg.s['27']++;if(host.editorBR){__cov_2qThWa_uIngTPOkA1ujwjg.b['6'][0]++;__cov_2qThWa_uIngTPOkA1ujwjg.s['28']++;Y.error('Can not plug EditorPara and EditorBR at the same time.');__cov_2qThWa_uIngTPOkA1ujwjg.s['29']++;return;}else{__cov_2qThWa_uIngTPOkA1ujwjg.b['6'][1]++;}__cov_2qThWa_uIngTPOkA1ujwjg.s['30']++;host.after('ready',Y.bind(this._afterEditorReady,this));__cov_2qThWa_uIngTPOkA1ujwjg.s['31']++;host.after('contentChange',Y.bind(this._afterContentChange,this));__cov_2qThWa_uIngTPOkA1ujwjg.s['32']++;if(Y.Env.webkit){__cov_2qThWa_uIngTPOkA1ujwjg.b['7'][0]++;__cov_2qThWa_uIngTPOkA1ujwjg.s['33']++;host.after('dom:paste',Y.bind(this._afterPaste,this));}else{__cov_2qThWa_uIngTPOkA1ujwjg.b['7'][1]++;}}},{NAME:'editorParaBase',NS:'editorParaBase',ATTRS:{host:{value:false}}});__cov_2qThWa_uIngTPOkA1ujwjg.s['34']++;Y.namespace('Plugin');__cov_2qThWa_uIngTPOkA1ujwjg.s['35']++;Y.Plugin.EditorParaBase=EditorParaBase;},'3.13.0',{'requires':['editor-base']});
  