mirror of
https://github.com/YunoHost-Apps/webtrees_ynh.git
synced 2024-09-03 18:26:37 +02:00
1 line
No EOL
2.6 KiB
JavaScript
1 line
No EOL
2.6 KiB
JavaScript
CKEDITOR.dialog.add("a11yHelp",function(c){var b=c.lang.a11yhelp,j=CKEDITOR.tools.getNextId(),i={8:b.backspace,9:b.tab,13:b.enter,16:b.shift,17:b.ctrl,18:b.alt,19:b.pause,20:b.capslock,27:b.escape,33:b.pageUp,34:b.pageDown,35:b.end,36:b.home,37:b.leftArrow,38:b.upArrow,39:b.rightArrow,40:b.downArrow,45:b.insert,46:b["delete"],91:b.leftWindowKey,92:b.rightWindowKey,93:b.selectKey,96:b.numpad0,97:b.numpad1,98:b.numpad2,99:b.numpad3,100:b.numpad4,101:b.numpad5,102:b.numpad6,103:b.numpad7,104:b.numpad8,105:b.numpad9,106:b.multiply,107:b.add,109:b.subtract,110:b.decimalPoint,111:b.divide,112:b.f1,113:b.f2,114:b.f3,115:b.f4,116:b.f5,117:b.f6,118:b.f7,119:b.f8,120:b.f9,121:b.f10,122:b.f11,123:b.f12,144:b.numLock,145:b.scrollLock,186:b.semiColon,187:b.equalSign,188:b.comma,189:b.dash,190:b.period,191:b.forwardSlash,192:b.graveAccent,219:b.openBracket,220:b.backSlash,221:b.closeBracket,222:b.singleQuote};i[CKEDITOR.ALT]=b.alt;i[CKEDITOR.SHIFT]=b.shift;i[CKEDITOR.CTRL]=b.ctrl;var g=[CKEDITOR.ALT,CKEDITOR.SHIFT,CKEDITOR.CTRL],h=/\$\{(.*?)\}/g,d=function(){var e=c.keystrokeHandler.keystrokes,f={},k;for(k in e){f[e[k]]=k}return function(o,s){var n;if(f[s]){n=f[s];for(var q,p,l=[],r=0;r<g.length;r++){p=g[r],q=n/g[r],1<q&&2>=q&&(n-=p,l.push(i[p]))}l.push(i[n]||String.fromCharCode(n));n=l.join("+")}else{n=o}return n}}();return{title:b.title,minWidth:600,minHeight:400,contents:[{id:"info",label:c.lang.common.generalTab,expand:!0,elements:[{type:"html",id:"legends",style:"white-space:normal;",focus:function(){this.getElement().focus()},html:function(){for(var w='<div class="cke_accessibility_legend" role="document" aria-labelledby="'+j+'_arialbl" tabIndex="-1">%1</div><span id="'+j+'_arialbl" class="cke_voice_label">'+b.contents+" </span>",u=[],y=b.legend,p=y.length,v=0;v<p;v++){for(var z=y[v],t=[],s=z.items,o=s.length,x=0;x<o;x++){var n=s[x],a=n.legend.replace(h,d);a.match(h)||t.push("<dt>%1</dt><dd>%2</dd>".replace("%1",n.name).replace("%2",a))}u.push("<h1>%1</h1><dl>%2</dl>".replace("%1",z.name).replace("%2",t.join("")))}return w.replace("%1",u.join(""))}()+'<style type="text/css">.cke_accessibility_legend{width:600px;height:400px;padding-right:5px;overflow-y:auto;overflow-x:hidden;}.cke_browser_quirks .cke_accessibility_legend,{height:390px}.cke_accessibility_legend *{white-space:normal;}.cke_accessibility_legend h1{font-size: 20px;border-bottom: 1px solid #AAA;margin: 5px 0px 15px;}.cke_accessibility_legend dl{margin-left: 5px;}.cke_accessibility_legend dt{font-size: 13px;font-weight: bold;}.cke_accessibility_legend dd{margin:10px}</style>'}]}],buttons:[CKEDITOR.dialog.cancelButton]}}); |