ckeditor_a11ychecker-8.x-1.x-dev/js/build/a11ychecker.js

js/build/a11ychecker.js
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.a11ychecker=t())}(self,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,o)=>{e.exports=o("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/ui.js":(e,t,o)=>{e.exports=o("dll-reference CKEditor5.dll")("./src/ui.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function o(r){var c=t[r];if(void 0!==c)return c.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";o.d(r,{default:()=>s});var e=o("ckeditor5/src/core.js"),t=o("ckeditor5/src/ui.js");class c extends e.Plugin{init(){const e=this.editor;e.editing.view.change((t=>{const o=e.editing.view.document.getRoot();t.setAttribute("data-ckeditor-a11y",e.id,o)})),e.ui.componentFactory.add("a11ychecker",(o=>{const r=new t.ButtonView(o);return r.set({label:e.t("Accessibility Checker"),icon:'<?xml version="1.0" encoding="utf-8"?>\x3c!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --\x3e\r\n<svg fill="#000000" width="800px" height="800px" viewBox="0 0 1920 1920" xmlns="http://www.w3.org/2000/svg">\r\n    <path d="M960 2c529.355 0 960 430.645 960 960s-430.645 960-960 960S0 1491.355 0 962 430.645 2 960 2Zm0 112.941c-467.125 0-847.059 379.934-847.059 847.059 0 467.125 379.934 847.059 847.059 847.059 467.125 0 847.059-379.934 847.059-847.059 0-467.125-379.934-847.059-847.059-847.059Zm436.704 520.291h-914.56c-31.04 0-55.467 24.427-55.467 55.467 0 31.146 24.427 55.573 55.467 55.573h275.307v887.787c0 31.146 24.32 55.573 55.466 55.573 31.04 0 55.467-24.427 55.467-55.573v-375.04h146.453v375.04c0 31.146 24.427 55.573 55.467 55.573 31.147 0 55.573-24.427 55.573-55.573V744.032h275.307c31.04 0 55.467-24.427 55.467-55.467-6.72-28.906-31.04-53.333-59.947-53.333m-457.29-315.21c73.6 0 133.226 59.626 133.226 133.226 0 73.493-59.627 133.12-133.227 133.12-73.493 0-133.226-59.627-133.226-133.12 0-73.6 59.733-133.227 133.226-133.227" fill-rule="evenodd"/>\r\n</svg>',tooltip:!0}),r.on("execute",(t=>{this._checkDoc(t,e.id)})),r}))}_checkDoc(e,t){e.path[0].isEnabled||e.stop(),document.querySelectorAll(".ck-editor__sa11y").forEach((e=>{e.classList.remove("ck-editor__sa11y")})),document.querySelectorAll('.ck-editor__editable[data-ckeditor-a11y="'+t+'"]').forEach((e=>{e.classList.add("ck-editor__sa11y")})),customElements.get("sa11y-heading-label")?(window.sa11y.resetAll(),window.sa11y.checkAll()):(Sa11y.Lang.addI18n(Sa11yLangEn.strings),window.sa11y=new Sa11y.Sa11y({checkRoot:".ck-editor__sa11y"}))}}class i extends e.Plugin{static get requires(){return[c]}}const s={A11ychecker:i}})(),r=r.default})()));

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc