EnterParagraphs._pluginInfo={name:"EnterParagraphs",origin:"Xinha Core",version:"$LastChangedRevision: 688 $".replace(/^[^:]*: (.*) \$$/,"$1"),developer:"The Xinha Core Developer Team",developer_url:"$HeadURL: http://svn.xinha.python-hosting.com/trunk/modules/Gecko/paraHandlerDirty.js $".replace(/^[^:]*: (.*) \$$/,"$1"),sponsor:"",sponsor_url:"",license:"htmlArea"}; function EnterParagraphs(_1){ this.editor=_1; } EnterParagraphs.prototype.onKeyPress=function(ev){ if(ev.keyCode==13&&!ev.shiftKey){ this.dom_checkInsertP(); Xinha._stopEvent(ev); } }; EnterParagraphs.prototype.dom_checkInsertP=function(){ var _3=this.editor; var p,body; var _5=_3.getSelection(); var _6=_3.createRange(_5); if(!_6.collapsed){ _6.deleteContents(); } _3.deactivateEditor(); var SC=_6.startContainer; var SO=_6.startOffset; var EC=_6.endContainer; var EO=_6.endOffset; if(SC==EC&&SC==body&&!SO&&!EO){ p=_3._doc.createTextNode(" "); body.insertBefore(p,body.firstChild); _6.selectNodeContents(p); SC=_6.startContainer; SO=_6.startOffset; EC=_6.endContainer; EO=_6.endOffset; } p=_3.getAllAncestors(); var _b=null; body=_3._doc.body; for(var i=0;i