"+window.decodeURIComponent(t)+"
":""}))}),a.on("keydown",function(e){var t,n,o=e.keyCode,i=a.getBody();r&&(e.metaKey||e.ctrlKey||112<=o&&o<=123?(e.metaKey||e.ctrlKey)&&88===o&&(s=r):(t=c(a.selection.getNode()))===r?(o===d.LEFT||o===d.UP?(v(),l(t.previousSibling)?p(t.previousSibling):t.previousSibling?(a.selection.select(t.previousSibling,!0),a.selection.collapse()):(n=f(),i.insertBefore(n,i.firstChild),a.selection.setCursorLocation(i.firstChild,0))):o===d.RIGHT||o===d.DOWN?(v(),l(t.nextSibling)?p(t.nextSibling):t.nextSibling?a.selection.setCursorLocation(t.nextSibling,0):(n=f(),i.appendChild(n),a.selection.setCursorLocation(i.lastChild,0))):o!==d.DELETE&&o!==d.BACKSPACE||a.dom.remove(r),e.preventDefault()):v())}),a.on("keydown",function(e){var t,n,o=e.keyCode,i=a.dom,r=a.selection.getRng(),s=r.startContainer,c=a.getBody();if(s&&s!==c&&!e.metaKey&&!e.ctrlKey)if(o===d.UP||o===d.LEFT)(o!==d.LEFT||r.collapsed&&0===r.startOffset)&&(t=i.getParent(s,i.isBlock))&&m(t,"previous")&&e.preventDefault();else if((o===d.DOWN||o===d.RIGHT)&&(t=i.getParent(s,i.isBlock))){if(o===d.RIGHT){if(n=r.endContainer,!r.collapsed||0===r.startOffset&&n.length||n.nextSibling||3===n.nodeType&&r.startOffset!==n.length)return;for(;n&&n!==t&&n!==c;){if(n.nextSibling)return;n=n.parentNode}}m(t,"next")&&e.preventDefault()}}),a.on("keyup",function(e){var t,n=e.keyCode,e=a.getBody();s&&(a.dom.remove(s),s=!1),n!==d.DELETE&&n!==d.BACKSPACE||(l(e.lastChild)&&(t=f(),e.appendChild(t),2===e.childNodes.length&&a.selection.setCursorLocation(t,0)),t=a.selection.getRng(),e.firstChild===t.startContainer&&!0===t.collapsed&&l(t.startContainer.nextSibling)&&0===t.startOffset&&a.dom.remove(t.startContainer))}),{getViewText:i,setViewText:function(e,t){return!!(e=c("string"==typeof e?a.dom.get(e):e))&&(a.dom.setAttrib(e,"data-wpview-text",window.encodeURIComponent(t||"")),!0)}};function t(e){return e.replace(/(