spacevillain (spacevillain) wrote in changelog,
spacevillain
spacevillain
changelog

[livejournal] r23266: LJSUP-13704: Username bubble works incor...

Committer: atyurin
LJSUP-13704: Username bubble works incorrect (new update.bml)
U   trunk/htdocs/js/ck/ckeditor.js
U   trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/htdocs/js/ck/ckeditor.js
===================================================================
--- trunk/htdocs/js/ck/ckeditor.js	2012-11-07 13:11:17 UTC (rev 23265)
+++ trunk/htdocs/js/ck/ckeditor.js	2012-11-07 14:43:45 UTC (rev 23266)
@@ -137,18 +137,18 @@
 C.collapse(true);x.selectRanges([C]);}},100);};a.editor.prototype.isFocusAt=function(v){var w=this.getSelection(),x=w.getRanges()[0],y=this.document.getBody();if(v==='end'&&x.checkEndOfBlock())if(y.equals(x.endContainer)||y.getLast().equals(x.endContainer))return true;if(v==='start')throw new Error('Not implemented');return false;};a.editor.prototype.isSelectionCollapsed=function(){var v=this.getSelection(),w=v&&v.getRanges()[0];if(w)return!!w.collapsed;return false;};var m=a.lang[a.lang.detect()]||{};jQuery.extend(m,LJ.pageVar('rtedata'));window.CKLang=m;if(Site.page.ljpost)a.styleText=Site.statprefix+'/js/ck/contents_new.css?t='+Site.version;else a.styleText=Site.statprefix+'/js/ck/contents.css?t='+Site.version;var n='@focus@',o='<input type="hidden" id="__focus"/>';function p(v,w,x){x=x||{};x&&jQuery.extend(x,{fromDoubleClick:this.execFromEditor});LiveJournal.run_hook('rteButton',w,jQuery('.cke_button_'+v),x);this.execFromEditor=false;};var q=[{label:m.LJLike_button_repost,id:'repost',abbr:'rp',checked:true,html:'<span class="lj-like-item rp">'+m.LJLike_button_repost+'</span>',htmlOpt:'<li class="like-rp"><input type="checkbox" id="like-rp" /><label for="like-rp">'+m.LJLike_button_repost+'</label></li>'},{label:m.LJLike_button_facebook,id:'facebook',abbr:'fb',checked:true,html:'<span class="lj-like-item fb">'+m.LJLike_button_facebook+'</span>',htmlOpt:'<li class="like-fb"><input type="checkbox" id="like-fb" /><label for="like-fb">'+m.LJLike_button_facebook+'</label></li>'},{label:m.LJLike_button_twitter,id:'twitter',abbr:'tw',checked:true,html:'<span class="lj-like-item tw">'+m.LJLike_button_twitter+'</span>',htmlOpt:'<li class="like-tw"><input type="checkbox" id="like-tw" /><label for="like-tw">'+m.LJLike_button_twitter+'</label></li>'},{label:m.LJLike_button_google,id:'google',abbr:'go',checked:true,html:'<span class="lj-like-item go">'+m.LJLike_button_google+'</span>',htmlOpt:'<li class="like-go"><input type="checkbox" id="like-go" /><label for="like-go">'+m.LJLike_button_google+'</label></li>'},{label:m.LJLike_button_vkontakte,id:'vkontakte',abbr:'vk',checked:Site.remote_is_sup?true:false,html:'<span class="lj-like-item vk">'+m.LJLike_button_vkontakte+'</span>',htmlOpt:Site.remote_is_sup?'<li class="like-vk"><input type="checkbox" id="like-vk" /><label for="like-vk">'+m.LJLike_button_vkontakte+'</label></li>':''},{label:m.LJLike_button_surfingbird,id:'surfingbird',abbr:'sb',checked:Site.remote_is_sup?true:false,html:'<span class="lj-like-item sb">'+m.LJLike_button_surfingbird+'</span>',htmlOpt:Site.remote_is_sup?'<li class="like-sb"><input type="checkbox" id="like-sb" /><label for="like-sb">'+m.LJLike_button_surfingbird+'</label></li>':''},{label:m.LJLike_button_tumblr,id:'tumblr',abbr:'tb',checked:true,html:'<span class="lj-like-item tb">'+m.LJLike_button_tumblr+'</span>',htmlOpt:'<li class="like-tb"><input type="checkbox" id="like-tb" /><label for="like-tb">'+m.LJLike_button_tumblr+'</label></li>'},{label:m.LJLike_button_give,id:'livejournal',abbr:'lj',checked:false,html:'<span class="lj-like-item lj">'+m.LJLike_button_give+'</span>',htmlOpt:'<li class="like-lj"><input type="checkbox" id="like-lj" /><label for="like-lj">'+m.LJLike_button_give+'</label></li>'}],r={LJPollLink:{html:encodeURIComponent(m.Poll_PollWizardNotice+'<br /><a href="#" lj-cmd="LJPollLink">'+m.Poll_PollWizardNoticeLink+'</a>')},LJLike:{html:encodeURIComponent(m.LJLike_WizardNotice+'<br /><a href="#" lj-cmd="LJLike">'+m.LJLike_WizardNoticeLink+'</a>')},LJLink2:{html:encodeURIComponent(m.LJLink_WizardNotice+'<br /><a href="#" lj-cmd="LJLink2">'+m.LJLink_WizardNoticeLink+'</a>')},LJImage:{html:encodeURIComponent(m.LJImage_WizardNotice+'<br /><a href="#" lj-cmd="LJImage">'+m.LJImage_WizardNoticeLink+'</a>')},LJCut:{html:encodeURIComponent(m.LJCut_WizardNotice+'<br /><a href="#" lj-cmd="LJCut">'+m.LJCut_WizardNoticeLink+'</a>')},LJSpoiler:{html:encodeURIComponent(m.LJSpoiler_WizardNotice+'<br /><a href="#" lj-cmd="LJSpoiler">'+m.LJSpoiler_WizardNoticeLink+'</a>')},LJEmbedLink:{},LJMap:{},LJCut2:{}},s={};
 function t(v){var w,x,y,z,A=document.createElement('lj-note'),B=typeof document.body.style.opacity!='string',C=(function(){var F=60,G=100,H=G*F/1000,I=[],J,K=document.getElementById('draft-container')||document.body;function L(){var M=I.shift(),N=(J?M.time/G:-(M.time/G-1)).toFixed(1);if(!I.length)N=J?1:0;if(B)A.style.filter=N>=1?null:'progid:DXImageTransform.Microsoft.Alpha(opacity='+N*100+')';else A.style.opacity=N;if(N==0&&A&&A.parentNode)A.parentNode.removeChild(A);};return function(M){J=M;if(J&&A.parentNode){if(B)A.style.filter=null;else A.style.opacity=1;}else for(var N=1;N<=H;N++){var O=Math.floor(1000/F)*N;I.push({time:O,timer:setTimeout(L,O)});}K.appendChild(A);A.style.marginTop=-A.offsetHeight/2+'px';A.style.marginLeft=-A.offsetWidth/2+'px';};})();A.className='note-popup';A.onmouseout=function(){if(!y||!y.cmd){}};A.onmouseover=function(){if(w&&!x){x=1;w=clearTimeout(w);}};if(B)A.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=0)';else A.style.opacity=0;function D(){var F=this.getAttribute('lj-cmd');if(y.hasOwnProperty(F)){r[F].node=y[F].node;var G=new d.selection(v.document);G.selectElement(r[F].node);v.execFromEditor=true;v.execCommand(F);}return false;};function E(){if(!window.switchedRteOn){}if(x){y=z;z=null;var F='';for(var G in y){if(y.hasOwnProperty(G))F+='<div class="noteItem">'+y[G].content+'</div>';}A.innerHTML=decodeURIComponent(F);var H=A.getElementsByTagName('a');for(var I=0,J=H.length;I<J;I++){var K=H[I];if(r.hasOwnProperty(K.getAttribute('lj-cmd')))K.onclick=D;}}else y=null;C(x);w=null;};a.note={show:function(F,G){if(!G&&F==z||!window.switchedRteOn)return;if(w)w=clearTimeout(w);x=1;z=F;G===true?E():w=setTimeout(E,1000);},hide:function(F){if(x){x=0;if(w)w=clearTimeout(w);if(A.parentNode)F===true?E():w=setTimeout(E,500);}}};};var u=f;u.$block['lj-template']=1;u.$block['lj-raw']=1;u.$block['lj-cut']=1;u.$block['lj-spoiler']=1;u.$block['lj-poll']=1;u.$block['lj-repost']=1;u.$block['lj-pq']=1;u.$block['lj-pi']=1;u.$nonEditable['lj-template']=1;u.$empty['lj-random']=1;u['lj-template']={};u['lj-map']={};u['lj-repost']={};u['lj-raw']=u.div;u['lj-poll']={'lj-pq':1};u['lj-pq']={'#':1,'lj-pi':1};u['lj-pi']={'#':1};['a','b','em','i','img','strong','u','lj-user'].forEach(function(v){u['lj-pq'][v]=1;u['lj-pi'][v]=1;});u.$block.iframe=u.$inline.iframe;delete u.$inline.iframe;e.extend(u['lj-cut']={},u.$block);e.extend(u['lj-spoiler']={},u.$block);e.extend(u['lj-cut'],u.$inline);e.extend(u['lj-spoiler'],u.$inline);e.extend(u.div,u.$block);
 e.extend(u.$body,u.$block);delete u['lj-cut']['lj-cut'];f.p.iframe=1;f['lj-cut'].iframe=1;f['lj-spoiler'].iframe=1;j.add('livejournal',{init:function(v){v.rteButton=p;function w(D){var E=D.data.element||D.data.getTarget();if(E.type!=1)E=E.getParent();while(E){var F=E.getAttribute('lj-cmd');if(r.hasOwnProperty(F)){var G=v.getCommand(F);if(G.state==1){var H=new d.selection(v.document);r[F].node=E.is('body')?new h.get(E.getWindow().$.frameElement):E;H.selectElement(r[F].node);D.data.dialog='';v.execFromEditor=true;v.execCommand(F,true);break;}}E=E.getParent();}};function x(D){var E=this;if(E.$!=v.document.$){E.$.className=(E.frame.getAttribute('lj-class')||'')+' lj-selected';if(E.getAttribute('lj-cmd')=='LJPollLink')E.frame.setStyle('height',E.getDocument().$.body.scrollHeight+'px');v.focus();new d.selection(v.document).selectElement(E.frame);}D.data.getKey()==1&&D.data.preventDefault();};function y(D){if(D.data.getKey()==46){var E=new d.selection(v.document).getRanges(),F=E.length;while(F--)E[F].deleteContents();}};function z(){var G=this;var D=G.$.contentWindow,E=D.document,F=new h.get(E.body);if(F.on&&!Site.page.disabled_input){F.on('dblclick',w);F.on('click',x);F.on('keyup',y);if(G.getAttribute('lj-cmd')=='LJPollLink'&&G.hasAttribute('style'))E.body.className='lj-poll lj-poll-open';}E=new h.get(E);E.frame=F.frame=G;};function A(){var D=v.document.getElementsByTag('iframe'),E=D.count(),F,G,H,I,J;v.execFromEditor=false;while(E--){F=D.getItem(E),G=F.getAttribute('lj-cmd'),H=F.$.contentWindow,I=H.document,J=F.getAttribute('lj-style')||'';if(F.getAttribute('data-update')==='false')continue;F.removeListener('load',z);F.on('load',z);I.open();I.write('<!DOCTYPE html><html style="'+J+'">'+'<head><link rel="stylesheet" href="'+a.styleText+'" /></head>'+'<body scroll="no" class="'+(F.getAttribute('lj-class')||'')+'" style="'+J+'" '+(G?'lj-cmd="'+G+'"':'')+'>'+decodeURIComponent(F.getAttribute('lj-content')||'')+'</body>'+'</html>');I.close();}};v.updateFrames=A;function B(D){if(v.onSwitch===true){delete v.onSwitch;return;}var E,F=D.name=='click',G=D.name=='selectionChange'||F,H=D.data.element||D.data.getTarget(),I,J;if(F&&(D.data.getKey()==1||D.data.$.button==0))D.data.preventDefault();if(H.type!=1)H=H.getParent();I=H;if(G){var K=v.document.getElementsByTag('iframe'),L,M;if(F&&I.is('iframe')){M=I.$.contentWindow.document.body;M.className=(I.getAttribute('lj-class')||'')+' lj-selected';if(I.getAttribute('lj-cmd')=='LJPollLink')I.setStyle('height',M.scrollHeight+'px');
-}for(var N=0,O=K.count();N<O;N++){L=K.getItem(N);if(L.$!=I.$){M=L.$.contentWindow.document.body;M.className=L.getAttribute('lj-class')||'';if(L.getAttribute('lj-cmd')=='LJPollLink'&&M.className.indexOf('lj-poll')!=-1)L.removeAttribute('style');}}}do{var P=I.getAttribute('lj-cmd');if(!P&&I.type==1){var Q=I.getParent();if(I.is('img')&&Q.getParent()&&!Q.getParent().hasAttribute('lj:user')){P='LJImage';I.setAttribute('lj-cmd',P);}else if(I.is('a')&&!Q.hasAttribute('lj:user')){P='LJLink2';I.setAttribute('lj-cmd',P);}}if(P&&r.hasOwnProperty(P)){if(G){r[P].node=I;v.getCommand(P).setState(1);}(E||(E={}))[P]={content:r[P].html,node:I};}}while(I=I.getParent());var R;if(G)for(J in r){if(r.hasOwnProperty(J)&&(!E||!E.hasOwnProperty(J))){delete r[J].node;R=v.getCommand(J);if(R)R.setState(2);}}};(function(){function D(M){return M.slice(-2)=='/>'?M:M.slice(0,-1)+'/>';};function E(M){var N=new Poll(M),O="<div class='lj-poll-inner lj-rtebox-inner'>"+N.outputHTML()+'</div>';return '<iframe class="lj-poll-wrap lj-rtebox" lj-class="lj-poll" frameborder="0" lj-cmd="LJPollLink" allowTransparency="true" lj-data="'+N.outputLJtags()+'" lj-content="'+O+'"></iframe>';};function F(M,N){var O="<div class='lj-poll-inner lj-rtebox-inner'>Poll id: "+N+'</div>';return '<iframe class="lj-poll-wrap lj-poll-wrap-done lj-rtebox" lj-class="lj-poll" frameborder="0" lj-cmd="LJPollLink" allowTransparency="true" lj-data="'+escape(M)+'" lj-content="'+O+'" data-disabledPoll="true"></iframe>';};function G(M,N,O){var P="<div class='lj-embed-inner lj-rtebox-inner'>Embed video</div>";return '<iframe class="lj-embed-wrap lj-rtebox" lj-class="lj-embed" frameborder="0" lj-cmd="LJEmbedLink" allowTransparency="true" lj-data="'+encodeURIComponent(O)+'"'+N+'lj-content="'+P+'"></iframe>';};function H(M,N,O,P){return N+O.replace(/\n/g,'')+P;};function I(M,N,O,P){var Q=N||O||m.LJRepost_Value,R=P.replace(/"/g,'&quot;');P=R+('<br /><input type="button" value="'+Q+'" />').replace(/"/g,'&quot;');return '<iframe class="lj-repost-wrap" lj-class="lj-repost" frameborder="0" allowTransparency="true" lj-text="'+R+'" lj-button="'+Q+'" lj-content="'+P+'"></iframe>';};function J(M,N){var O,P,Q=0;do{if(!O)O=N.call(M,Q)===false;if(!O&&(P=M.firstChild))Q++;else if(P=M.nextSibling)O=false;else{P=M.parentNode;Q--;O=true;}M=P;}while(Q>0);};function K(M,N){return M.replace(/<(.|\n)*?>/g,function(O){var P=O;if(P.indexOf(N)!==-1){P=P.replace(N,'');return P+N;}else return O;});};function L(M,N,O){return[M.slice(0,N),O,M.slice(N)].join('');
-};v.on('contentDom',function(M){var N=this,O=M.editor.document.getById('__focus');if(O){this._domBuilt=true;setTimeout(function(){M.editor.focus();var P=M.editor.getSelection();if(P){var Q=new d.range(M.editor.document);Q.setEndAfter(O);P.selectRanges([Q]);}O.remove();},this._domBuilt?0:100);}});v.dataProcessor.toHtml=function(M,N){var O=Site.page.__htmlLast;if(M&&M.length>0&&typeof O==='number')M=K(L(M,O,n),n).replace(n,o);M=M.replace(/<lj [^>]*?>/gi,D).replace(/<lj-map [^>]*?>/gi,D).replace(/<lj-template[^>]*?>/gi,D).replace(/(<lj-cut[^>]*?)\/>/gi,'$1>').replace(/<((?!br)[^\s>]+)([^>]*?)\/>/gi,'<$1$2></$1>').replace(/<lj-poll.*?>[\s\S]*?<\/lj-poll>/gi,E).replace(/<lj-poll-([0-9]+)>/gi,F).replace(/<lj-repost\s*(?:button\s*=\s*(?:"([^"]*?)")|(?:"([^']*?)"))?.*?>([\s\S]*?)<\/lj-repost>/gi,I).replace(/<lj-embed(.*?)>([\s\S]*?)<\/lj-embed>/gi,G);M=M.replace(/<table[^>]*>((.|\n)*?)<\/table>/i,function(P){var Q=document.createElement('span');Q.innerHTML=P;J(Q,function(){var R=this;if(R.nodeType===3)if(R.parentNode.nodeName.toLowerCase()!=='td')R.nodeValue=R.nodeValue.replace(/\n/ig,'');});return Q.innerHTML;});if(!$('event_format').checked){M=M.replace(/(<lj-raw.*?>)([\s\S]*?)(<\/lj-raw>)/gi,H);M=M.replace(/\n/g,'<br/>');}M=a.htmlDataProcessor.prototype.toHtml.call(this,M,N);if(c)M='<xml:namespace ns="livejournal" prefix="lj" />'+M;return M;};})();v.dataProcessor.toDataFormat=function(D,E){D=a.htmlDataProcessor.prototype.toDataFormat.call(this,D,E);if(!$('event_format').checked)D=D.replace(/<br\s*\/>/gi,'\n');return D.replace(/\t/g,' ');};v.dataProcessor.writer.indentationChars='';v.dataProcessor.writer.lineBreakChars='';v.on('selectionChange',B);v.on('doubleclick',w);v.on('afterCommandExec',A);v.on('dialogHide',A);v.on('dataReady',function(){if(c){v.document.getBody().on('dragend',A);v.document.getBody().on('paste',function(){setTimeout(A,0);});}if(!Site.page.disabled_input){v.document.on('click',B);v.document.on('mouseover',B);v.document.getBody().on('keyup',y);A();}});(function(){var D='LJFont',E=v.config,F=false,G={},H='normal',I=E.LJFontDefault,J=E.LJFontSize,K=E.LJFontStyle,L='b-fontsize-select-item-active',M,N,O,P,Q=jQuery();for(P in J){G[P]=new a.style(K,{size:J[P]});G[P]._.definition.name=P;}function R(S){I=S;Q.removeClass(L).filter('.b-fontsize-select-item-'+I).addClass(L);};v.addCommand(D,{exec:function(S){S.rteButton(D,'font');if(!F){Q=jQuery('.b-fontsize-select-item');LiveJournal.register_hook('font_response',function(U){S.focus();S.fire('saveSnapshot');
-var V=G[U],W,X,Y;if(I===U)V.remove(S.document);else{X=S.getSelection();Y=parseFloat(V._.definition.styles['font-size']);for(W in G)G[W].remove(S.document);V.apply(S.document);}S.fire('saveSnapshot');});F=true;var T=S.getCommand(D);T.setState(1);R(I);}}});v.ui.addButton(D,{label:m[D],command:D});v.on('selectionChange',function(S){var T=S.data.path,U=T.elements,V=v.getCommand(D),W,X,Y;for(W=0;W<U.length;W++){X=U[W];for(Y in G){if(G[Y].checkElementRemovable(X,true)){if(Y!==I){R(Y);V.setState(1);}return;}}}R(H);V.setState(2);});})();(function(){var D='LJImage',E=null;LiveJournal.register_hook('editpic_response',function(F){var G=E,H=G&&G.getParent();if(!G)return;if(F.url){G.setAttribute('src',F.url);G.setAttribute('data-cke-saved-src',F.url);}else{if(H&&H.getName()==='a')H.remove();else G.remove();return;}if(F.width)G.setAttribute('width',F.width);else G.removeAttribute('width');if(F.height)G.setAttribute('height',F.height);else G.removeAttribute('height');if(F.title)G.setAttribute('title',F.title);else G.removeAttribute('title');if(F.border)G.setStyle('border-width',F.border+'px');else{G.removeStyle('border-width');G.removeStyle('border-style');}if(F.vspace)G.setStyles({'margin-top':F.vspace+'px','margin-bottom':F.vspace+'px'});else{G.removeStyle('margin-top');G.removeStyle('margin-bottom');}if(F.hspace)G.setStyles({'margin-left':F.hspace+'px','margin-right':F.hspace+'px'});else{G.removeStyle('margin-left');G.removeStyle('margin-right');}var H=G&&G.getParent();if(F.link){F.link=F.link.replace(/^[\s\t]*(?:http:\/\/)?/,'http://');if(H&&H.getName()==='a'){H.setAttribute('href',F.link);H.setAttribute('data-cke-saved-href',F.link);if(F.blank)H.setAttribute('target','_blank');else H.removeAttribute('target');}else{var I=new h('a',v.document);I.setAttribute('href',F.link);if(F.blank)I.setAttribute('target','_blank');G.insertBeforeMe(I);I.append(G);v.getSelection()&&v.getSelection().selectElement(I);}}else if(H.getName()==='a'){H.insertBeforeMe(G);H.remove();}if(F.aligment&&F.aligment!=='none')G.setStyle('float',F.aligment);else G.removeStyle('float');E=null;});v.addCommand(D,{exec:function(F,G){var H=F.getSelection();H=H?H.getSelectedElement():null;E=H;if(H){var I=H&&H.getParent(),J=I.getName()==='a',K=J&&I,L=J&&I.getAttribute('href'),M={};if('naturalWidth' in H.$){M.width=H.$.naturalWidth;M.height=H.$.naturalHeight;}else{var N=new Image();N.src=H.$.src;M={width:N.width,height:N.height};}F.rteButton(D,'editpic',{picData:{url:H.getAttribute('src'),title:H.getAttribute('title'),width:H.getAttribute('width')||H.$.width,height:H.getAttribute('height')||H.$.height,defaultWidth:M.width,defaultHeight:M.height,link:L||'',blank:J?!!K.getAttribute('target'):true,border:parseInt(H.getStyle('border-width'),10),vspace:parseInt(H.getStyle('margin-top'),10),hspace:parseInt(H.getStyle('margin-left'),10),aligment:H.getStyle('float')||'none'}});
+}for(var N=0,O=K.count();N<O;N++){L=K.getItem(N);if(L.$!=I.$){M=L.$.contentWindow.document.body;M.className=L.getAttribute('lj-class')||'';if(L.getAttribute('lj-cmd')=='LJPollLink'&&M.className.indexOf('lj-poll')!=-1)L.removeAttribute('style');}}}do{var P=I.getAttribute('lj-cmd');if(!P&&I.type==1){var Q=I.getParent();if(I.is('img')&&!I.hasAttribute('data-user')&&Q.getParent()&&!Q.getParent().hasAttribute('data-user')){P='LJImage';console.log('ii');I.setAttribute('lj-cmd',P);}else if(I.is('a')&&!I.hasAttribute('data-user')&&!Q.hasAttribute('lj:user')){P='LJLink2';I.setAttribute('lj-cmd',P);}}if(P&&r.hasOwnProperty(P)){if(G){r[P].node=I;v.getCommand(P).setState(1);}(E||(E={}))[P]={content:r[P].html,node:I};}}while(I=I.getParent());var R;if(G)for(J in r){if(r.hasOwnProperty(J)&&(!E||!E.hasOwnProperty(J))){delete r[J].node;R=v.getCommand(J);if(R)R.setState(2);}}};(function(){function D(M){return M.slice(-2)=='/>'?M:M.slice(0,-1)+'/>';};function E(M){var N=new Poll(M),O="<div class='lj-poll-inner lj-rtebox-inner'>"+N.outputHTML()+'</div>';return '<iframe class="lj-poll-wrap lj-rtebox" lj-class="lj-poll" frameborder="0" lj-cmd="LJPollLink" allowTransparency="true" lj-data="'+N.outputLJtags()+'" lj-content="'+O+'"></iframe>';};function F(M,N){var O="<div class='lj-poll-inner lj-rtebox-inner'>Poll id: "+N+'</div>';return '<iframe class="lj-poll-wrap lj-poll-wrap-done lj-rtebox" lj-class="lj-poll" frameborder="0" lj-cmd="LJPollLink" allowTransparency="true" lj-data="'+escape(M)+'" lj-content="'+O+'" data-disabledPoll="true"></iframe>';};function G(M,N,O){var P="<div class='lj-embed-inner lj-rtebox-inner'>Embed video</div>";return '<iframe class="lj-embed-wrap lj-rtebox" lj-class="lj-embed" frameborder="0" lj-cmd="LJEmbedLink" allowTransparency="true" lj-data="'+encodeURIComponent(O)+'"'+N+'lj-content="'+P+'"></iframe>';};function H(M,N,O,P){return N+O.replace(/\n/g,'')+P;};function I(M,N,O,P){var Q=N||O||m.LJRepost_Value,R=P.replace(/"/g,'&quot;');P=R+('<br /><input type="button" value="'+Q+'" />').replace(/"/g,'&quot;');return '<iframe class="lj-repost-wrap" lj-class="lj-repost" frameborder="0" allowTransparency="true" lj-text="'+R+'" lj-button="'+Q+'" lj-content="'+P+'"></iframe>';};function J(M,N){var O,P,Q=0;do{if(!O)O=N.call(M,Q)===false;if(!O&&(P=M.firstChild))Q++;else if(P=M.nextSibling)O=false;else{P=M.parentNode;Q--;O=true;}M=P;}while(Q>0);};function K(M,N){return M.replace(/<(.|\n)*?>/g,function(O){var P=O;if(P.indexOf(N)!==-1){P=P.replace(N,'');return P+N;
+}else return O;});};function L(M,N,O){return[M.slice(0,N),O,M.slice(N)].join('');};v.on('contentDom',function(M){var N=this,O=M.editor.document.getById('__focus');if(O){this._domBuilt=true;setTimeout(function(){M.editor.focus();var P=M.editor.getSelection();if(P){var Q=new d.range(M.editor.document);Q.setEndAfter(O);P.selectRanges([Q]);}O.remove();},this._domBuilt?0:100);}});v.dataProcessor.toHtml=function(M,N){var O=Site.page.__htmlLast;if(M&&M.length>0&&typeof O==='number')M=K(L(M,O,n),n).replace(n,o);M=M.replace(/<lj [^>]*?>/gi,D).replace(/<lj-map [^>]*?>/gi,D).replace(/<lj-template[^>]*?>/gi,D).replace(/(<lj-cut[^>]*?)\/>/gi,'$1>').replace(/<((?!br)[^\s>]+)([^>]*?)\/>/gi,'<$1$2></$1>').replace(/<lj-poll.*?>[\s\S]*?<\/lj-poll>/gi,E).replace(/<lj-poll-([0-9]+)>/gi,F).replace(/<lj-repost\s*(?:button\s*=\s*(?:"([^"]*?)")|(?:"([^']*?)"))?.*?>([\s\S]*?)<\/lj-repost>/gi,I).replace(/<lj-embed(.*?)>([\s\S]*?)<\/lj-embed>/gi,G);M=M.replace(/<table[^>]*>((.|\n)*?)<\/table>/i,function(P){var Q=document.createElement('span');Q.innerHTML=P;J(Q,function(){var R=this;if(R.nodeType===3)if(R.parentNode.nodeName.toLowerCase()!=='td')R.nodeValue=R.nodeValue.replace(/\n/ig,'');});return Q.innerHTML;});if(!$('event_format').checked){M=M.replace(/(<lj-raw.*?>)([\s\S]*?)(<\/lj-raw>)/gi,H);M=M.replace(/\n/g,'<br/>');}M=a.htmlDataProcessor.prototype.toHtml.call(this,M,N);if(c)M='<xml:namespace ns="livejournal" prefix="lj" />'+M;return M;};})();v.dataProcessor.toDataFormat=function(D,E){D=a.htmlDataProcessor.prototype.toDataFormat.call(this,D,E);if(!$('event_format').checked)D=D.replace(/<br\s*\/>/gi,'\n');return D.replace(/\t/g,' ');};v.dataProcessor.writer.indentationChars='';v.dataProcessor.writer.lineBreakChars='';v.on('selectionChange',B);v.on('doubleclick',w);v.on('afterCommandExec',A);v.on('dialogHide',A);v.on('dataReady',function(){if(c){v.document.getBody().on('dragend',A);v.document.getBody().on('paste',function(){setTimeout(A,0);});}if(!Site.page.disabled_input){v.document.on('click',B);v.document.on('mouseover',B);v.document.getBody().on('keyup',y);A();}});(function(){var D='LJFont',E=v.config,F=false,G={},H='normal',I=E.LJFontDefault,J=E.LJFontSize,K=E.LJFontStyle,L='b-fontsize-select-item-active',M,N,O,P,Q=jQuery();for(P in J){G[P]=new a.style(K,{size:J[P]});G[P]._.definition.name=P;}function R(S){I=S;Q.removeClass(L).filter('.b-fontsize-select-item-'+I).addClass(L);};v.addCommand(D,{exec:function(S){S.rteButton(D,'font');if(!F){Q=jQuery('.b-fontsize-select-item');LiveJournal.register_hook('font_response',function(U){S.focus();
+S.fire('saveSnapshot');var V=G[U],W,X,Y;if(I===U)V.remove(S.document);else{X=S.getSelection();Y=parseFloat(V._.definition.styles['font-size']);for(W in G)G[W].remove(S.document);V.apply(S.document);}S.fire('saveSnapshot');});F=true;var T=S.getCommand(D);T.setState(1);R(I);}}});v.ui.addButton(D,{label:m[D],command:D});v.on('selectionChange',function(S){var T=S.data.path,U=T.elements,V=v.getCommand(D),W,X,Y;for(W=0;W<U.length;W++){X=U[W];for(Y in G){if(G[Y].checkElementRemovable(X,true)){if(Y!==I){R(Y);V.setState(1);}return;}}}R(H);V.setState(2);});})();(function(){var D='LJImage',E=null;LiveJournal.register_hook('editpic_response',function(F){var G=E,H=G&&G.getParent();if(!G)return;if(F.url){G.setAttribute('src',F.url);G.setAttribute('data-cke-saved-src',F.url);}else{if(H&&H.getName()==='a')H.remove();else G.remove();return;}if(F.width)G.setAttribute('width',F.width);else G.removeAttribute('width');if(F.height)G.setAttribute('height',F.height);else G.removeAttribute('height');if(F.title)G.setAttribute('title',F.title);else G.removeAttribute('title');if(F.border)G.setStyle('border-width',F.border+'px');else{G.removeStyle('border-width');G.removeStyle('border-style');}if(F.vspace)G.setStyles({'margin-top':F.vspace+'px','margin-bottom':F.vspace+'px'});else{G.removeStyle('margin-top');G.removeStyle('margin-bottom');}if(F.hspace)G.setStyles({'margin-left':F.hspace+'px','margin-right':F.hspace+'px'});else{G.removeStyle('margin-left');G.removeStyle('margin-right');}var H=G&&G.getParent();if(F.link){F.link=F.link.replace(/^[\s\t]*(?:http:\/\/)?/,'http://');if(H&&H.getName()==='a'){H.setAttribute('href',F.link);H.setAttribute('data-cke-saved-href',F.link);if(F.blank)H.setAttribute('target','_blank');else H.removeAttribute('target');}else{var I=new h('a',v.document);I.setAttribute('href',F.link);if(F.blank)I.setAttribute('target','_blank');G.insertBeforeMe(I);I.append(G);v.getSelection()&&v.getSelection().selectElement(I);}}else if(H.getName()==='a'){H.insertBeforeMe(G);H.remove();}if(F.aligment&&F.aligment!=='none')G.setStyle('float',F.aligment);else G.removeStyle('float');E=null;});v.addCommand(D,{exec:function(F,G){var H=F.getSelection();H=H?H.getSelectedElement():null;E=H;if(H){var I=H&&H.getParent(),J=I.getName()==='a',K=J&&I,L=J&&I.getAttribute('href'),M={};if('naturalWidth' in H.$){M.width=H.$.naturalWidth;M.height=H.$.naturalHeight;}else{var N=new Image();N.src=H.$.src;M={width:N.width,height:N.height};}F.rteButton(D,'editpic',{picData:{url:H.getAttribute('src'),title:H.getAttribute('title'),width:H.getAttribute('width')||H.$.width,height:H.getAttribute('height')||H.$.height,defaultWidth:M.width,defaultHeight:M.height,link:L||'',blank:J?!!K.getAttribute('target'):true,border:parseInt(H.getStyle('border-width'),10),vspace:parseInt(H.getStyle('margin-top'),10),hspace:parseInt(H.getStyle('margin-left'),10),aligment:H.getStyle('float')||'none'}});
 }else jQuery('.b-updatepage-event-section').editor('handleImageUpload','upload');},editorFocus:false});v.ui.addButton(D,{label:m.LJImage_Title,command:D});})();(function(){var D=null;v.on('selectionChange',function(H){var I=H.data.element;if(I.is('iframe'))D=I;else D=null;});var E='LJEmbedLink',F='video';function G(H){var I=new h('iframe',v.document);if(H!==LiveJournal.getEmbed(H)){var J=h.createFromHtml(LiveJournal.getEmbed(H)),K='',L=LiveJournal.parseMediaLink(H);if(L.preview)K='style="background-image: url('+L.preview+');"';I.setAttribute('lj-url',J.getAttribute('src'));I.setAttribute('data-link',H);I.setAttribute('lj-class','lj-iframe');I.setAttribute('class','lj-iframe-wrap lj-rtebox');I.setAttribute('style','width: 490px; height:370px;');I.setAttribute('lj-style','width: 480px; height:360px;');I.setAttribute('allowfullscreen','true');I.setAttribute('lj-content',encodeURIComponent('<div '+K+" class='lj-embed-inner lj-rtebox-inner'>"+(K?'':'iframe')+'</div>'));}else{I.setAttribute('lj-class','lj-embed');I.setAttribute('class','lj-embed-wrap lj-rtebox');I.setAttribute('lj-content',encodeURIComponent('<div '+K+" class='lj-embed-inner lj-rtebox-inner'>Embed</div>"));}I.setAttribute('lj-data',encodeURIComponent(LiveJournal.getEmbed(H)));I.setAttribute('frameBorder',0);I.setAttribute('allowTransparency','true');I.setAttribute('lj-cmd',E);v.insertElement(I);A();};LiveJournal.register_hook(F+'_response',function(H){G(H);});v.addCommand(E,{exec:function(H){var I=r[E].node||D;if(I)p(E,F,{defaultText:I&&decodeURIComponent(I.getAttribute('data-link')||I.getAttribute('lj-url')||I.getAttribute('lj-data')),editMode:true});else p(E,F);}});v.ui.addButton(E,{label:m.LJEmbed,command:E});})();function C(D,E,F){var G,H=r[E].node;if(H){if(G=F.skip||prompt(F.title,H.getAttribute('text')||F.text))if(G==F.text)H.removeAttribute('text');else H.setAttribute('text',G);}else if(G=F.skip||prompt(F.title,F.text)){v.focus();var I=new d.selection(v.document),J=I.getRanges(),K=new h('iframe',v.document),L=K.clone();K.setAttribute('lj-cmd',E);K.setAttribute('lj-class',D+' '+D+'-open');K.setAttribute('class',D+'-wrap');K.setAttribute('frameBorder',0);K.setAttribute('allowTransparency','true');if(G!=F.text)K.setAttribute('text',G);L.setAttribute('lj-class',D+' '+D+'-close');L.setAttribute('class',D+'-wrap');L.setAttribute('frameBorder',0);L.setAttribute('allowTransparency','true');var M=J[0];I.lock();var N=new h('br',v.document),O=N.clone(),P=N.clone(),Q=new d.documentFragment(v.document);
 Q.append(N.clone());Q.append(K);Q.append(O);if(M.collapsed===false)for(var R=0,S=J.length;R<S;R++){if(I.getSelectedElement())J[R].enlarge(1);Q.append(J[R].extractContents());}Q.append(P);v.insertElement(L);N.clone().insertAfter(L);L.insertBeforeMe(Q);M.setStart(O,0);M.setEnd(P,0);I.unlock();I.selectRanges(J);v.fire('updateSnapshot');A();}};(function(){var D='LJMap',E='map';LiveJournal.register_hook('map_response',function(F){var G=new h('iframe',v.document),H=425,I=350,J='',K='';if(!isNaN(H)){J+='width:'+H+'px;';K+='width:'+(H-2)+'px;';}if(!isNaN(I)){J+='height:'+I+'px;';K+='height:'+(I-2)+'px;';}var L=r[D].node;if(L)L.setAttributes({'lj-url':F});else{G.setAttributes({'lj-url':F,'class':'lj-map-wrap lj-rtebox','lj-content':'<div class="lj-map-inner lj-rtebox-inner"><p class="lj-map">map</p></div>','lj-cmd':'LJMap','lj-class':'lj-map',frameborder:0,allowTransparency:'true',style:J,'lj-style':K});v.insertElement(G);}A();});v.addCommand(D,{exec:function(){var F=r[D].node;p(D,E,{defaultText:F?F.getAttribute('lj-url'):'',editMode:F?true:false});},editorFocus:false});v.ui.addButton(D,{label:m.LJMap_Title,command:D});})();(function(){var D='LJSpoiler',E='spoiler';LiveJournal.register_hook('spoiler_response',function(F){C('lj-spoiler',D,{title:m.LJCut_PromptTitle,text:m.LJCut_PromptText,skip:F});});v.addCommand(D,{exec:function(){var F=r[D].node;p(D,E,{defaultText:F?F.getAttribute('text'):'',editMode:F?true:false});},editorFocus:false});v.ui.addButton(D,{label:m.LJSpoiler_Title,command:D});})();(function(){function D(K,L){L=L===undefined||L;var M,N=r.LJLike.node;if(N){var O=K.getAttribute('lj-style');M=O?O.replace(/text-align:\s*(left|right|center)/i,'$1'):'left';}else if(L)M=K.getComputedStyle('text-align');else{while(!K.hasAttribute||!(K.hasAttribute('align')||K.getStyle('text-align'))){var P=K.getParent();if(!P)break;K=P;}M=K.getStyle('text-align')||K.getAttribute('align')||'';}M&&(M=M.replace(/-moz-|-webkit-|start|auto/i,''));!M&&L&&(M=K.getComputedStyle('direction')=='rtl'?'right':'left');return M;};function E(K){if(K.editor.readOnly)return;var L=K.editor.getCommand(this.name),M=K.data.element;if((M.type==1&&M.hasAttribute('lj-cmd')&&M.getAttribute('lj-cmd'))=='LJLike')L.state=D(M,v.config.useComputedState)==this.value?1:2;else if(!M||M.type!=1||M.getName()=='body'||M.getName()=='iframe')L.state=2;else L.state=D(M,v.config.useComputedState)==this.value?1:2;L.fire('state');};function F(K,L,M){var O=this;O.name=L;O.value=M;var N=K.config.justifyClasses;if(N){switch(M){case 'left':O.cssClassName=N[0];
 break;case 'center':O.cssClassName=N[1];break;case 'right':O.cssClassName=N[2];break;}O.cssClassRegex=new RegExp('(?:^|\\s+)(?:'+N.join('|')+')(?=$|\\s)');}};function G(K){var L=K.editor,M=new d.range(L.document);M.setStartBefore(K.data.node);M.setEndAfter(K.data.node);var N=new d.walker(M),O;while(O=N.next()){if(O.type==1){var P='text-align',Q=L.config.justifyClasses;if(!O.equals(K.data.node)&&O.getDirection()){M.setStartAfter(O);N=new d.walker(M);continue;}if(Q)if(O.hasClass(Q[0])){O.removeClass(Q[0]);O.addClass(Q[2]);}else if(O.hasClass(Q[2])){O.removeClass(Q[2]);O.addClass(Q[0]);}switch(O.getStyle(P)){case 'left':O.setStyle(P,'right');break;case 'right':O.setStyle(P,'left');break;}}}};F.prototype={exec:function(K){var Y=this;var L=K.getSelection(),M=K.config.enterMode;if(!L)return;var N=L.createBookmarks();if(r.LJLike.node)r.LJLike.node.setAttribute('lj-style','text-align: '+Y.value);else{var O=L.getRanges(true),P=Y.cssClassName,Q,R,S=K.config.useComputedState;S=S===undefined||S;for(var T=O.length-1;T>=0;T--){var U=O[T],V=U.getEnclosedNode();if(V&&V.type===1&&V.is('iframe'))return;Q=U.createIterator();Q.enlargeBr=M!=2;while(R=Q.getNextParagraph(M==1?'p':'div')){R.removeAttribute('align');R.removeStyle('text-align');var W=P&&(R.$.className=e.ltrim(R.$.className.replace(Y.cssClassRegex,''))),X=Y.state==2&&(!S||D(R,true)!=Y.value);if(P){if(X)R.addClass(P);else if(!W)R.removeAttribute('class');}else if(X)R.setStyle('text-align',Y.value);}}}K.focus();K.forceNextSelectionCheck();L.selectBookmarks(N);}};var H=new F(v,'LJJustifyLeft','left'),I=new F(v,'LJJustifyCenter','center'),J=new F(v,'LJJustifyRight','right');v.addCommand('LJJustifyLeft',H);v.addCommand('LJJustifyCenter',I);v.addCommand('LJJustifyRight',J);v.ui.addButton('LJJustifyLeft',{label:v.lang.justify.left,command:'LJJustifyLeft'});v.ui.addButton('LJJustifyCenter',{label:v.lang.justify.center,command:'LJJustifyCenter'});v.ui.addButton('LJJustifyRight',{label:v.lang.justify.right,command:'LJJustifyRight'});v.on('selectionChange',e.bind(E,H));v.on('selectionChange',e.bind(E,J));v.on('selectionChange',e.bind(E,I));v.on('dirChanged',G);})();(function(){var D='LJPollLink';if(!LJ.pageVar('remoteUser',true))return;LiveJournal.register_hook('poll_response',function(E){var F=new Poll(E),G="<div class='lj-poll-inner lj-rtebox-inner'>"+F.outputHTML()+'</div>',H=F.outputLJtags(),I=r[D].node;if(I){I.setAttribute('lj-content',G);I.setAttribute('lj-data',H);I.removeAttribute('style');}else{I=new h('iframe',v.document);
 I.setAttribute('lj-content',G);I.setAttribute('lj-cmd','LJPollLink');I.setAttribute('lj-data',H);I.setAttribute('lj-class','lj-poll lj-rtebox');I.setAttribute('class','lj-poll-wrap');I.setAttribute('frameBorder',0);I.setAttribute('allowTransparency','true');v.insertElement(I);}A();});v.addCommand(D,{exec:function(E){var F=r.LJPollLink.node;if(F)p(D,'poll',{ljData:decodeURIComponent(F.getAttribute('lj-data')),editMode:true,disabled:F&&(F.getAttribute('data-disabledPoll')?true:false)});else p(D,'poll');},editorFocus:false});v.ui.addButton(D,{label:m.LJPoll_Title,command:D});})();(function(){var D='LJLike',E='like';q.defaultButtons=[];for(var F=0;F<q.length;F++){btn=q[F];q[btn.id]=q[btn.abbr]=btn;q.defaultButtons.push(btn.id);}LiveJournal.register_hook('like_response',function(G){var H=[],I=[],J=typeof G==='string';for(var K=0,L;K<q.length;K++){L=q[K];if(J&&L.checked||G.indexOf(L.id)!=-1){H.push(L.id);I.push(L.html);}}var M=r[D].node,N=encodeURIComponent('<div class="lj-rtebox-inner lj-like-inner"><span class="lj-like-wrapper">'+I.join('')+'</span></div>');if(M){M.setAttribute('buttons',H.join(','));M.setAttribute('lj-content',N);M.removeAttribute('defaults');}else{M=new h('iframe',v.document);M.setAttribute('lj-class','lj-like');M.setAttribute('class','lj-like-wrap lj-rtebox');M.setAttribute('buttons',H.join(','));M.setAttribute('lj-content',N);M.setAttribute('lj-cmd','LJLike');M.setAttribute('frameBorder',0);M.setAttribute('allowTransparency','true');M.setAttribute('defaults',J);v.insertElement(M);}A();});v.addCommand(D,{exec:function(G){var H=r[D].node;if(H)p(D,E,{buttons:H.getAttribute('buttons'),editMode:true});else p(D,E);},editorFocus:false});v.ui.addButton(D,{label:m.LJLike_Title,command:D});})();},afterInit:function(v){var w=v.dataProcessor;function x(y,z,A,B){B=B||'text';var C=new a.htmlParser.element('iframe');C.attributes['lj-class']=z+' '+z+'-open';C.attributes['class']=z+'-wrap';C.attributes['lj-cmd']=A;C.attributes.frameBorder=0;C.attributes.allowTransparency='true';if(y.attributes.hasOwnProperty(B))C.attributes.text=y.attributes[B];y.children.unshift(C);var D=new a.htmlParser.element('iframe');D.attributes['lj-class']=z+' '+z+'-close';D.attributes['class']=z+'-wrap';D.attributes.frameBorder=0;D.attributes.allowTransparency='true';y.children.push(D);delete y.name;};w.dataFilter.addRules({elements:{'lj-like':function(y){var z=[],A=new a.htmlParser.element('iframe');A.attributes['lj-class']='lj-like';A.attributes['class']='lj-like-wrap lj-rtebox';
 if(y.attributes.hasOwnProperty('style'))A.attributes['lj-style']=y.attributes.style;A.attributes['lj-cmd']='LJLike';A.attributes['lj-content']='<div class="lj-rtebox-inner lj-like-inner"><span class="lj-like-wrapper">';A.attributes.frameBorder=0;A.attributes.allowTransparency='true';var B=y.attributes.buttons&&y.attributes.buttons.split(',')||q.defaultButtons,C=y.attributes.buttons?true:false,D=B.length;for(var E=0;E<D;E++){var F=B[E].replace(/^\s*([a-z]{2,})\s*$/i,'$1'),G=q[F];if(G&&(C||G.checked)){A.attributes['lj-content']+=encodeURIComponent(G.html);z.push(F);}}if(!y.attributes.buttons)A.attributes.defaults=true;A.attributes['lj-content']+='</span></div>';A.attributes.buttons=z.join(',');return A;},'lj-map':function(y){var z=new a.htmlParser.element('iframe'),A='',B='',C=Number(y.attributes.width),D=Number(y.attributes.height);if(!isNaN(C)){A+='width:'+C+'px;';B+='width:'+(C-2)+'px;';}if(!isNaN(D)){A+='height:'+D+'px;';B+='height:'+(D-2)+'px;';}if(A.length){z.attributes.style=A;z.attributes['lj-style']=B;}z.attributes['lj-url']=y.attributes.url?encodeURIComponent(y.attributes.url):'';z.attributes['lj-class']='lj-map';z.attributes['class']='lj-map-wrap lj-rtebox';z.attributes['lj-content']='<div class="lj-map-inner lj-rtebox-inner"><p class="lj-map">map</p></div>';z.attributes.frameBorder=0;z.attributes.allowTransparency='true';return z;},'lj-raw':function(y){y.name='lj:raw';},'lj-wishlist':function(y){y.name='lj:wishlist';},'lj-template':function(y){var z=new a.htmlParser.element('iframe');z.attributes['lj-class']='lj-template';z.attributes['class']='lj-template-wrap';z.attributes.frameBorder=0;z.attributes.allowTransparency='true';z.attributes['lj-attributes']=encodeURIComponent(LiveJournal.JSON.stringify(y.attributes));return z;},'lj-cut':function(y){x(y,'lj-cut','LJCut2');},'lj-spoiler':function(y){x(y,'lj-spoiler','LJSpoiler','title');},iframe:function(y){if(y.attributes['data-update']==='false')return y;var z='';if(y.attributes['data-link']){var A=LiveJournal.parseMediaLink(y.attributes['data-link']);if(A.preview)z='style="background-image: url('+A.preview+');"';}var B=y.attributes.src;if(y.attributes['lj-class']&&y.attributes['lj-class'].indexOf('lj-')+1==1)return y;var C=new a.htmlParser.element('iframe'),D='',E='',F=Number(y.attributes.width),G=Number(y.attributes.height);if(y.attributes.src.indexOf('kroogi.com')!==-1&&y.attributes.style){var H=y.attributes.style.match(/width:\s([0-9]+)px;/i),I=y.attributes.style.match(/height:\s([0-9]+)px;/i);if(I.length===2&&H.length===2){F=Number(H.pop());
-G=Number(I.pop());}}if(!isNaN(F)){D+='width:'+F+'px;';E+='width:'+(F-10)+'px;';}if(!isNaN(G)){D+='height:'+G+'px;';E+='height:'+(G-10)+'px;';}if(D.length){C.attributes.style=D;C.attributes['lj-style']=E;}C.attributes['lj-url']=y.attributes.src?encodeURIComponent(y.attributes.src):'';C.attributes['lj-class']='lj-iframe';C.attributes['class']='lj-iframe-wrap lj-rtebox';C.attributes['lj-content']='<div '+z+' class="lj-rtebox-inner">'+(z?'':'iframe')+'</div>';C.attributes.frameBorder=0;C.attributes.allowTransparency='true';if(B!=LiveJournal.getEmbed(decodeURIComponent(y.attributes.src))){C.attributes['lj-cmd']='LJEmbedLink';C.attributes['data-link']=y.attributes['data-link'];}return C;},a:function(y){if(y.parent.attributes&&!y.parent.attributes['lj:user'])y.attributes['lj-cmd']='LJLink2';},img:function(y){var z=y.parent&&y.parent.parent;if(!z||!z.attributes||!z.attributes['lj:user'])y.attributes['lj-cmd']='LJImage';},div:function(y){if(y.attributes['class']=='lj-cut')x(y,'lj-cut','LJCut');}}},5);w.htmlFilter.addRules({elements:{input:function(y){if(y.attributes&&y.attributes.id==='__focus')return false;return y;}}});w.htmlFilter.addRules({elements:{iframe:function(y){var z=y,A=false,B='text',C=/lj-[a-z]+/i.exec(y.attributes['lj-class']);if(C)C=C[0];else return y;switch(C){case 'lj-like':z=new a.htmlParser.element('lj-like');if(y.attributes.defaults!='true')z.attributes.buttons=y.attributes.buttons;if(y.attributes.hasOwnProperty('lj-style'))z.attributes.style=y.attributes['lj-style'];z.isEmpty=true;z.isOptionalClose=true;break;case 'lj-embed':var D=decodeURIComponent(y.attributes['lj-data']);z=new a.htmlParser.element('lj-embed');z.attributes.id=y.attributes.id;if(y.attributes.id)z.isEmpty=true;if(y.attributes.hasOwnProperty('source_user'))z.attributes.source_user=y.attributes.source_user;z.children=new a.htmlParser.fragment.fromHtml(decodeURIComponent(y.attributes['lj-data'])).children;z.isOptionalClose=true;break;case 'lj-map':z=new a.htmlParser.element('lj-map');z.attributes.url=decodeURIComponent(y.attributes['lj-url']);y.attributes.style&&(y.attributes.style+';').replace(/([a-z-]+):(.*?);/gi,function(I,J,K){z.attributes[J.toLowerCase()]=parseInt(K);});z.isOptionalClose=z.isEmpty=true;break;case 'lj-iframe':z=new a.htmlParser.element('iframe');z.attributes.src=decodeURIComponent(y.attributes['lj-url']);y.attributes.style&&(y.attributes.style+';').replace(/([a-z-]+):(.*?);/gi,function(I,J,K){z.attributes[J.toLowerCase()]=parseInt(K);});z.attributes.frameBorder=0;
-if(y.attributes['data-link'])z.attributes['data-link']=y.attributes['data-link'];break;case 'lj-poll':var D=decodeURIComponent(y.attributes['lj-data']);z=new a.htmlParser.fragment.fromHtml(D).children[0];break;case 'lj-repost':z=new a.htmlParser.element('lj-repost');z.attributes.button=y.attributes['lj-button'];z.children=new a.htmlParser.fragment.fromHtml(y.attributes['lj-text']).children;break;case 'lj-template':z=new a.htmlParser.element('lj-template');z.attributes=LiveJournal.JSON.parse(encodeURIComponent(y.attributes['lj-attributes']));z.isOptionalClose=z.isEmpty=true;break;case 'lj-spoiler':A=true;B='title';case 'lj-cut':if(y.attributes['lj-class'].indexOf(C+'-open')+1){var E=y.next,F=0;z=new a.htmlParser.element(C);if(y.attributes.hasOwnProperty('text'))z.attributes[B]=y.attributes.text;while(E){if(E.name=='iframe'){var G=E.attributes['lj-class'];if(G&&G.indexOf(C+'-close')+1){if(A&&F)F--;else{z.next=E;break;}}else if(G&&G.indexOf(C+'-open')+1)if(A)F++;else{z.next=E;break;}}E.parent.children.remove(E);z.add(E);var H=E.next;E.next=null;E=H;}}else z=false;break;default:if(!y.children.length)z=false;}return z;},span:function(y){var z=y.attributes['lj:user'];if(z){var A=new a.htmlParser.element('lj');A.attributes.user=z;try{var B=y.children[1].children[0].children[0].value;}catch(C){return false;}if(B&&B!=z)A.attributes.title=B;A.isOptionalClose=A.isEmpty=true;return A;}else if(y.attributes.style=='display: none;'||!y.children.length)return false;},div:function(y){if(!y.children.length)return false;},'lj:raw':function(y){y.name='lj-raw';},'lj:wishlist':function(y){y.name='lj-wishlist';}},attributes:{'lj-cmd':function(){return false;},contenteditable:function(){return false;}}});},requires:['fakeobjects','domiterator']});})();(function(m,n){var o;function p(v){return v.type==3&&v.getLength()>0&&(!o||!v.isReadOnly());};function q(v){return!(v.type==1&&v.isBlockBoundary(e.extend({},f.$empty,f.$nonEditable)));};var r=function(){var v=this;return{textNode:v.textNode,offset:v.offset,character:v.textNode?v.textNode.getText().charAt(v.offset):null,hitMatchBoundary:v._.matchBoundary};},s,t=function(v,w){s=new a.style(e.extend({attributes:{'data-cke-highlight':1,'data-incorrect':1,'data-id':0},fullMatch:1,ignoreReadonly:1,childRule:function(){return 1;}},{element:'span',styles:{'border-bottom':'1px solid red',cursor:'pointer'}},true));var x=function(J,K){var L=this,M=new d.walker(J);M.guard=K?q:function(N){!q(N)&&(L._.matchBoundary=true);};M.evaluator=p;M.breakOnFalse=1;
-if(J.startContainer.type==3){this.textNode=J.startContainer;this.offset=J.startOffset-1;}this._={matchWord:K,walker:M,matchBoundary:false};};x.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(J){var L=this;var K=L.textNode;if(K===null)return r.call(L);L._.matchBoundary=false;if(K&&J&&L.offset>0){L.offset--;return r.call(L);}else if(K&&L.offset<K.getLength()-1){L.offset++;return r.call(L);}else{K=null;while(!K){K=L._.walker[J?'previous':'next'].call(L._.walker);if(L._.matchWord&&!K||L._.walker._.end)break;}L.textNode=K;if(K)L.offset=J?K.getLength()-1:0;else L.offset=0;}return r.call(L);}};var y=function(J,K){this._={walker:J,cursors:[],rangeLength:K,highlightRange:null,isMatched:0};};y.prototype={toDomRange:function(){var J=new d.range(v.document),K=this._.cursors;if(K.length<1){var L=this._.walker.textNode;if(L)J.setStartAfter(L);else return null;}else{var M=K[0],N=K[K.length-1];J.setStart(M.textNode,M.offset);J.setEnd(N.textNode,N.offset+1);}return J;},updateFromDomRange:function(J){var M=this;var K,L=new x(J);M._.cursors=[];do{K=L.next();if(K.character)M._.cursors.push(K);}while(K.character);M._.rangeLength=M._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var M=this;if(M._.cursors.length<1)return;if(M._.highlightRange)M.removeHighlight();var J=M.toDomRange(),K=J.createBookmark();s.applyToRange(J);J.moveToBookmark(K);M._.highlightRange=J;var L=J.startContainer;if(L.type!=1)L=L.getParent();M.updateFromDomRange(J);},highlightx:function(){var L=this;if(L._.cursors.length<1)return;if(L._.highlightRange)L.removeHighlight();var J=L.toDomRange(),K=J.createBookmark();J.moveToBookmark(K);L.updateFromDomRange(J);},removeHighlight:function(J){var L=this;if(!L._.highlightRange)return;var K=L._.highlightRange.createBookmark();s.removeFromRange(J||L._.highlightRange);L._.highlightRange.moveToBookmark(K);L.updateFromDomRange(L._.highlightRange);L._.highlightRange=null;},isReadOnly:function(){if(!this._.highlightRange)return 0;return this._.highlightRange.startContainer.isReadOnly();},moveBack:function(){var L=this;var J=L._.walker.back(),K=L._.cursors;if(J.hitMatchBoundary)L._.cursors=K=[];K.unshift(J);if(K.length>L._.rangeLength)K.pop();return J;},moveNext:function(){var L=this;var J=L._.walker.next(),K=L._.cursors;if(J.hitMatchBoundary)L._.cursors=K=[];K.push(J);if(K.length>L._.rangeLength)K.shift();
-return J;},getEndCharacter:function(){var J=this._.cursors;if(J.length<1)return null;return J[J.length-1].character;},getNextCharacterRange:function(J){var K,L,M=this._.cursors;if((K=M[M.length-1])&&K.textNode)L=new x(z(K));else L=this._.walker;return new y(L,J);},getCursors:function(){return this._.cursors;}};function z(J,K){var L=new d.range();L.setStart(J.textNode,K?J.offset:J.offset+1);L.setEndAt(v.document.getBody(),2);return L;};function A(J){var K=new d.range();K.setStartAt(v.document.getBody(),1);K.setEnd(J.textNode,J.offset);return K;};var B=0,C=1,D=2,E=function(J,K){var L=[-1];if(K)J=J.toLowerCase();for(var M=0;M<J.length;M++){L.push(L[M]+1);while(L[M+1]>0&&J.charAt(M)!=J.charAt(L[M+1]-1))L[M+1]=L[L[M+1]-1]+1;}this._={overlap:L,state:0,ignoreCase:!!K,pattern:J};};E.prototype={feedCharacter:function(J){var K=this;if(K._.ignoreCase)J=J.toLowerCase();for(;;){if(J==K._.pattern.charAt(K._.state)){K._.state++;if(K._.state==K._.pattern.length){K._.state=0;return D;}return C;}else if(!K._.state)return B;else K._.state=K._.overlap[K._.state];}return null;},reset:function(){this._.state=0;}};var F=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,G=function(J){if(!J)return true;var K=J.charCodeAt(0);return K>=9&&K<=13||K>=8192&&K<=8202||F.test(J);},H={searchRange:null,matchRange:null,find:function(J,K,L,M,N,O){var X=this;if(!X.matchRange)X.matchRange=new y(new x(X.searchRange),J.length);else X.matchRange=X.matchRange.getNextCharacterRange(J.length);var P=new E(J,!K),Q=B,R='%';while(R!==null){X.matchRange.moveNext();while(R=X.matchRange.getEndCharacter()){Q=P.feedCharacter(R);if(Q==D)break;if(X.matchRange.moveNext().hitMatchBoundary)P.reset();}if(Q==D){var S=X.matchRange.getCursors(),T=S[S.length-1],U=S[0],V=new x(A(U),true),W=new x(z(T),true);if(!(G(V.back().character)&&G(W.next().character)))continue;X.matchRange.setMatched();if(N!==false)X.matchRange.highlightx();return X.matchRange;}}if(M&&!O){X.searchRange=u(1);X.matchRange=null;return arguments.callee.apply(X,Array.prototype.slice.call(arguments).concat([true]));}return false;}},I=v.lang.findAndReplace;return H;};function u(v,w){var x,y=w.getSelection(),z=w.document.getBody();if(y&&!v){x=y.getRanges()[0].clone();x.collapse(true);}else{x=new d.range();x.setStartAt(z,1);}x.setEndAt(z,2);return x;};j.add('ljspell',{options:{classNames:{wordActive:'active',area:'b-spelling-textarea',skipError:'b-spelling-item-skip',bubbleContainer:'b-spelling-bubble',bubbleNoSuggestions:'b-spelling-item-no'},selectors:{bubbleItem:'.b-spelling-item',fake:'.b-spelling-faketextarea',error:'.b-spelling-error'},tmpl:{spellError:'<span class="b-spelling-word b-spelling-error" data-id="{id}"><span class="b-spelling-inner">{word}</span></span>',wrapper:'<div class="b-spelling"><div class="b-spelling-faketextarea"></div></div>',bubble:'<div class="b-spelling-bubble-container"></div>',bubbleList:'<ul class="b-spelling-items">{items}</ul>',bubbleItem:'<li class="b-spelling-item"><span class="b-spelling-item-word">{word}</span></li>',bubbleItemNoSuggestions:'<li class="b-spelling-item b-spelling-item-no"><span class="b-spelling-item-word">'+LJ.ml('widget.form.no_suggestions')+'</span></li>',bubbleItemSkip:'<li class="b-spelling-item b-spelling-item-skip"><span class="b-spelling-item-word">'+LJ.ml('widget.form.skip_word')+'</span></li>'},enabled:false},init:function(v){var w=this,x='LJSpell',y;
+G=Number(I.pop());}}if(!isNaN(F)){D+='width:'+F+'px;';E+='width:'+(F-10)+'px;';}if(!isNaN(G)){D+='height:'+G+'px;';E+='height:'+(G-10)+'px;';}if(D.length){C.attributes.style=D;C.attributes['lj-style']=E;}C.attributes['lj-url']=y.attributes.src?encodeURIComponent(y.attributes.src):'';C.attributes['lj-class']='lj-iframe';C.attributes['class']='lj-iframe-wrap lj-rtebox';C.attributes['lj-content']='<div '+z+' class="lj-rtebox-inner">'+(z?'':'iframe')+'</div>';C.attributes.frameBorder=0;C.attributes.allowTransparency='true';if(B!=LiveJournal.getEmbed(decodeURIComponent(y.attributes.src))){C.attributes['lj-cmd']='LJEmbedLink';C.attributes['data-link']=y.attributes['data-link'];}return C;},a:function(y){if(y.attributes['data-user'])return;if(y.parent&&y.parent.attributes&&!y.parent.attributes['lj:user'])y.attributes['lj-cmd']='LJLink2';},img:function(y){if(y.attributes['data-user'])return;var z=y.parent&&y.parent.parent;if(!z||!y.attributes['data-user']||!z.attributes||!z.attributes['data-user'])y.attributes['lj-cmd']='LJImage';},div:function(y){if(y.attributes['class']=='lj-cut')x(y,'lj-cut','LJCut');}}},5);w.htmlFilter.addRules({elements:{input:function(y){if(y.attributes&&y.attributes.id==='__focus')return false;return y;}}});w.htmlFilter.addRules({elements:{iframe:function(y){var z=y,A=false,B='text',C=/lj-[a-z]+/i.exec(y.attributes['lj-class']);if(C)C=C[0];else return y;switch(C){case 'lj-like':z=new a.htmlParser.element('lj-like');if(y.attributes.defaults!='true')z.attributes.buttons=y.attributes.buttons;if(y.attributes.hasOwnProperty('lj-style'))z.attributes.style=y.attributes['lj-style'];z.isEmpty=true;z.isOptionalClose=true;break;case 'lj-embed':var D=decodeURIComponent(y.attributes['lj-data']);z=new a.htmlParser.element('lj-embed');z.attributes.id=y.attributes.id;if(y.attributes.id)z.isEmpty=true;if(y.attributes.hasOwnProperty('source_user'))z.attributes.source_user=y.attributes.source_user;z.children=new a.htmlParser.fragment.fromHtml(decodeURIComponent(y.attributes['lj-data'])).children;z.isOptionalClose=true;break;case 'lj-map':z=new a.htmlParser.element('lj-map');z.attributes.url=decodeURIComponent(y.attributes['lj-url']);y.attributes.style&&(y.attributes.style+';').replace(/([a-z-]+):(.*?);/gi,function(I,J,K){z.attributes[J.toLowerCase()]=parseInt(K);});z.isOptionalClose=z.isEmpty=true;break;case 'lj-iframe':z=new a.htmlParser.element('iframe');z.attributes.src=decodeURIComponent(y.attributes['lj-url']);y.attributes.style&&(y.attributes.style+';').replace(/([a-z-]+):(.*?);/gi,function(I,J,K){z.attributes[J.toLowerCase()]=parseInt(K);
+});z.attributes.frameBorder=0;if(y.attributes['data-link'])z.attributes['data-link']=y.attributes['data-link'];break;case 'lj-poll':var D=decodeURIComponent(y.attributes['lj-data']);z=new a.htmlParser.fragment.fromHtml(D).children[0];break;case 'lj-repost':z=new a.htmlParser.element('lj-repost');z.attributes.button=y.attributes['lj-button'];z.children=new a.htmlParser.fragment.fromHtml(y.attributes['lj-text']).children;break;case 'lj-template':z=new a.htmlParser.element('lj-template');z.attributes=LiveJournal.JSON.parse(encodeURIComponent(y.attributes['lj-attributes']));z.isOptionalClose=z.isEmpty=true;break;case 'lj-spoiler':A=true;B='title';case 'lj-cut':if(y.attributes['lj-class'].indexOf(C+'-open')+1){var E=y.next,F=0;z=new a.htmlParser.element(C);if(y.attributes.hasOwnProperty('text'))z.attributes[B]=y.attributes.text;while(E){if(E.name=='iframe'){var G=E.attributes['lj-class'];if(G&&G.indexOf(C+'-close')+1){if(A&&F)F--;else{z.next=E;break;}}else if(G&&G.indexOf(C+'-open')+1)if(A)F++;else{z.next=E;break;}}E.parent.children.remove(E);z.add(E);var H=E.next;E.next=null;E=H;}}else z=false;break;default:if(!y.children.length)z=false;}return z;},div:function(y){if(!y.children.length)return false;},'lj:raw':function(y){y.name='lj-raw';},'lj:wishlist':function(y){y.name='lj-wishlist';}},attributes:{'lj-cmd':function(){return false;},contenteditable:function(){return false;}}});},requires:['fakeobjects','domiterator']});})();(function(m,n){var o;function p(v){return v.type==3&&v.getLength()>0&&(!o||!v.isReadOnly());};function q(v){return!(v.type==1&&v.isBlockBoundary(e.extend({},f.$empty,f.$nonEditable)));};var r=function(){var v=this;return{textNode:v.textNode,offset:v.offset,character:v.textNode?v.textNode.getText().charAt(v.offset):null,hitMatchBoundary:v._.matchBoundary};},s,t=function(v,w){s=new a.style(e.extend({attributes:{'data-cke-highlight':1,'data-incorrect':1,'data-id':0},fullMatch:1,ignoreReadonly:1,childRule:function(){return 1;}},{element:'span',styles:{'border-bottom':'1px solid red',cursor:'pointer'}},true));var x=function(J,K){var L=this,M=new d.walker(J);M.guard=K?q:function(N){!q(N)&&(L._.matchBoundary=true);};M.evaluator=p;M.breakOnFalse=1;if(J.startContainer.type==3){this.textNode=J.startContainer;this.offset=J.startOffset-1;}this._={matchWord:K,walker:M,matchBoundary:false};};x.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(J){var L=this;var K=L.textNode;if(K===null)return r.call(L);
+L._.matchBoundary=false;if(K&&J&&L.offset>0){L.offset--;return r.call(L);}else if(K&&L.offset<K.getLength()-1){L.offset++;return r.call(L);}else{K=null;while(!K){K=L._.walker[J?'previous':'next'].call(L._.walker);if(L._.matchWord&&!K||L._.walker._.end)break;}L.textNode=K;if(K)L.offset=J?K.getLength()-1:0;else L.offset=0;}return r.call(L);}};var y=function(J,K){this._={walker:J,cursors:[],rangeLength:K,highlightRange:null,isMatched:0};};y.prototype={toDomRange:function(){var J=new d.range(v.document),K=this._.cursors;if(K.length<1){var L=this._.walker.textNode;if(L)J.setStartAfter(L);else return null;}else{var M=K[0],N=K[K.length-1];J.setStart(M.textNode,M.offset);J.setEnd(N.textNode,N.offset+1);}return J;},updateFromDomRange:function(J){var M=this;var K,L=new x(J);M._.cursors=[];do{K=L.next();if(K.character)M._.cursors.push(K);}while(K.character);M._.rangeLength=M._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var M=this;if(M._.cursors.length<1)return;if(M._.highlightRange)M.removeHighlight();var J=M.toDomRange(),K=J.createBookmark();s.applyToRange(J);J.moveToBookmark(K);M._.highlightRange=J;var L=J.startContainer;if(L.type!=1)L=L.getParent();M.updateFromDomRange(J);},highlightx:function(){var L=this;if(L._.cursors.length<1)return;if(L._.highlightRange)L.removeHighlight();var J=L.toDomRange(),K=J.createBookmark();J.moveToBookmark(K);L.updateFromDomRange(J);},removeHighlight:function(J){var L=this;if(!L._.highlightRange)return;var K=L._.highlightRange.createBookmark();s.removeFromRange(J||L._.highlightRange);L._.highlightRange.moveToBookmark(K);L.updateFromDomRange(L._.highlightRange);L._.highlightRange=null;},isReadOnly:function(){if(!this._.highlightRange)return 0;return this._.highlightRange.startContainer.isReadOnly();},moveBack:function(){var L=this;var J=L._.walker.back(),K=L._.cursors;if(J.hitMatchBoundary)L._.cursors=K=[];K.unshift(J);if(K.length>L._.rangeLength)K.pop();return J;},moveNext:function(){var L=this;var J=L._.walker.next(),K=L._.cursors;if(J.hitMatchBoundary)L._.cursors=K=[];K.push(J);if(K.length>L._.rangeLength)K.shift();return J;},getEndCharacter:function(){var J=this._.cursors;if(J.length<1)return null;return J[J.length-1].character;},getNextCharacterRange:function(J){var K,L,M=this._.cursors;if((K=M[M.length-1])&&K.textNode)L=new x(z(K));else L=this._.walker;return new y(L,J);},getCursors:function(){return this._.cursors;
+}};function z(J,K){var L=new d.range();L.setStart(J.textNode,K?J.offset:J.offset+1);L.setEndAt(v.document.getBody(),2);return L;};function A(J){var K=new d.range();K.setStartAt(v.document.getBody(),1);K.setEnd(J.textNode,J.offset);return K;};var B=0,C=1,D=2,E=function(J,K){var L=[-1];if(K)J=J.toLowerCase();for(var M=0;M<J.length;M++){L.push(L[M]+1);while(L[M+1]>0&&J.charAt(M)!=J.charAt(L[M+1]-1))L[M+1]=L[L[M+1]-1]+1;}this._={overlap:L,state:0,ignoreCase:!!K,pattern:J};};E.prototype={feedCharacter:function(J){var K=this;if(K._.ignoreCase)J=J.toLowerCase();for(;;){if(J==K._.pattern.charAt(K._.state)){K._.state++;if(K._.state==K._.pattern.length){K._.state=0;return D;}return C;}else if(!K._.state)return B;else K._.state=K._.overlap[K._.state];}return null;},reset:function(){this._.state=0;}};var F=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,G=function(J){if(!J)return true;var K=J.charCodeAt(0);return K>=9&&K<=13||K>=8192&&K<=8202||F.test(J);},H={searchRange:null,matchRange:null,find:function(J,K,L,M,N,O){var X=this;if(!X.matchRange)X.matchRange=new y(new x(X.searchRange),J.length);else X.matchRange=X.matchRange.getNextCharacterRange(J.length);var P=new E(J,!K),Q=B,R='%';while(R!==null){X.matchRange.moveNext();while(R=X.matchRange.getEndCharacter()){Q=P.feedCharacter(R);if(Q==D)break;if(X.matchRange.moveNext().hitMatchBoundary)P.reset();}if(Q==D){var S=X.matchRange.getCursors(),T=S[S.length-1],U=S[0],V=new x(A(U),true),W=new x(z(T),true);if(!(G(V.back().character)&&G(W.next().character)))continue;X.matchRange.setMatched();if(N!==false)X.matchRange.highlightx();return X.matchRange;}}if(M&&!O){X.searchRange=u(1);X.matchRange=null;return arguments.callee.apply(X,Array.prototype.slice.call(arguments).concat([true]));}return false;}},I=v.lang.findAndReplace;return H;};function u(v,w){var x,y=w.getSelection(),z=w.document.getBody();if(y&&!v){x=y.getRanges()[0].clone();x.collapse(true);}else{x=new d.range();x.setStartAt(z,1);}x.setEndAt(z,2);return x;};j.add('ljspell',{options:{classNames:{wordActive:'active',area:'b-spelling-textarea',skipError:'b-spelling-item-skip',bubbleContainer:'b-spelling-bubble',bubbleNoSuggestions:'b-spelling-item-no'},selectors:{bubbleItem:'.b-spelling-item',fake:'.b-spelling-faketextarea',error:'.b-spelling-error'},tmpl:{spellError:'<span class="b-spelling-word b-spelling-error" data-id="{id}"><span class="b-spelling-inner">{word}</span></span>',wrapper:'<div class="b-spelling"><div class="b-spelling-faketextarea"></div></div>',bubble:'<div class="b-spelling-bubble-container"></div>',bubbleList:'<ul class="b-spelling-items">{items}</ul>',bubbleItem:'<li class="b-spelling-item"><span class="b-spelling-item-word">{word}</span></li>',bubbleItemNoSuggestions:'<li class="b-spelling-item b-spelling-item-no"><span class="b-spelling-item-word">'+LJ.ml('widget.form.no_suggestions')+'</span></li>',bubbleItemSkip:'&...
 (truncated)
Tags: atyurin, js, livejournal, spacevillain
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments