File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ CKEDITOR.plugins.add( 'listblock', {
37
37
// Call the base contructor.
38
38
this . base . apply ( this , arguments ) ;
39
39
40
+ // Set the proper a11y attributes.
41
+ this . element . setAttribute ( 'role' , attribs . role ) ;
42
+
40
43
var keys = this . keys ;
41
44
keys [ 40 ] = 'next' ; // ARROW-DOWN
42
45
keys [ 9 ] = 'next' ; // TAB
Original file line number Diff line number Diff line change 70
70
'{frame}' +
71
71
'</div>' ) ;
72
72
73
- var frameTpl = CKEDITOR . addTemplate ( 'panel-frame' , '<iframe id="{id}" class="cke_panel_frame" role="application " frameborder="0" src="{src}"></iframe>' ) ;
73
+ var frameTpl = CKEDITOR . addTemplate ( 'panel-frame' , '<iframe id="{id}" class="cke_panel_frame" role="presentation " frameborder="0" src="{src}"></iframe>' ) ;
74
74
75
75
var frameDocTpl = CKEDITOR . addTemplate ( 'panel-frame-inner' , '<!DOCTYPE html>' +
76
76
'<html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}">' +
279
279
if ( blockDefinition )
280
280
CKEDITOR . tools . extend ( this , blockDefinition ) ;
281
281
282
- if ( ! this . attributes . title )
283
- this . attributes . title = this . attributes [ 'aria-label' ] ;
282
+
283
+ // Set the a11y attributes of this element ...
284
+ this . element . setAttributes ( {
285
+ 'aria-label' : this . attributes [ 'aria-label' ] ,
286
+ 'title' : this . attributes . title || this . attributes [ 'aria-label' ]
287
+ } ) ;
288
+
289
+ // ... and remove them from being set in the panel main element.
290
+ delete this . attributes [ 'aria-label' ] ;
291
+ delete this . attributes . title ;
284
292
285
293
this . keys = { } ;
286
294
You can’t perform that action at this time.
0 commit comments