2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-02 23:54:28 -06:00

Add ARIA role=application

This commit is contained in:
Jonathan 2022-05-22 12:04:03 +02:00 committed by GitHub
parent 45e0f36685
commit 3cc99e47ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2168,6 +2168,7 @@ EasyMDE.prototype.render = function (el) {
// to use with sideBySideFullscreen option.
var easyMDEContainer = document.createElement('div');
easyMDEContainer.classList.add('EasyMDEContainer');
easyMDEContainer.setAttribute('role', 'application');
var cmWrapper = this.codemirror.getWrapperElement();
cmWrapper.parentNode.insertBefore(easyMDEContainer, cmWrapper);
easyMDEContainer.appendChild(cmWrapper);