~ubuntu-branches/ubuntu/precise/maas/precise-updates

« back to all changes in this revision

Viewing changes to debian/extras/jslibs/yui/editor-para-base/editor-para-base-min.js

Tags: 1.2+bzr1373+dfsg-0ubuntu1~12.04.4
* SECURITY UPDATE: failure to authenticate downloaded content (LP: #1039513)
  - debian/patches/CVE-2013-1058.patch: Authenticate downloaded files with
    GnuPG and MD5SUM files. Thanks to Julian Edwards.
  - CVE-2013-1058
* SECURITY UPDATE: configuration options may be loaded from current working
  directory (LP: #1158425)
  - debian/patches/CVE-2013-1057-1-2.patch: Do not load configuration
    options from the current working directory. Thanks to Julian Edwards.
  - CVE-2013-1057

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
YUI 3.5.1 (build 22)
 
3
Copyright 2012 Yahoo! Inc. All rights reserved.
 
4
Licensed under the BSD License.
 
5
http://yuilibrary.com/license/
 
6
*/
 
7
YUI.add("editor-para-base",function(a){var i=function(){i.superclass.constructor.apply(this,arguments);},k="host",e="body",c="nodeChange",j="parentNode",b=e+" > p",g="p",f="<br>",h="firstChild",d="li";a.extend(i,a.Base,{_fixFirstPara:function(){var p=this.get(k),r=p.getInstance(),q,s,l=r.config.doc.body,o=l.innerHTML,m=((o.length)?true:false);if(o===f){o="";m=false;}l.innerHTML="<"+g+">"+o+r.EditorSelection.CURSOR+"</"+g+">";s=r.one(b);q=new r.EditorSelection();q.selectNode(s,true,m);},_afterEditorReady:function(){var m=this.get(k),n=m.getInstance(),l;if(n){n.EditorSelection.filterBlocks();l=n.EditorSelection.DEFAULT_BLOCK_TAG;b=e+" > "+l;g=l;}},_afterContentChange:function(){var l=this.get(k),m=l.getInstance();if(m&&m.EditorSelection){m.EditorSelection.filterBlocks();}},_afterPaste:function(){var l=this.get(k),n=l.getInstance(),m=new n.EditorSelection();a.later(50,l,function(){n.EditorSelection.filterBlocks();});},initializer:function(){var l=this.get(k);if(l.editorBR){a.error("Can not plug EditorPara and EditorBR at the same time.");return;}l.after("ready",a.bind(this._afterEditorReady,this));l.after("contentChange",a.bind(this._afterContentChange,this));if(a.Env.webkit){l.after("dom:paste",a.bind(this._afterPaste,this));}}},{NAME:"editorParaBase",NS:"editorParaBase",ATTRS:{host:{value:false}}});a.namespace("Plugin");a.Plugin.EditorParaBase=i;},"3.5.1",{skinnable:false,requires:["editor-base"]});
 
 
b'\\ No newline at end of file'