|
@@ -39,6 +39,7 @@ export default class EditableUIView extends View {
|
|
|
setEditableElement( editableElement, def = { attributes: {} } ) {
|
|
setEditableElement( editableElement, def = { attributes: {} } ) {
|
|
|
const bind = this.attributeBinder;
|
|
const bind = this.attributeBinder;
|
|
|
const t = this.t;
|
|
const t = this.t;
|
|
|
|
|
+ const label = t( 'Rich Text Editor, %0', [ this.model.editableName ] );
|
|
|
|
|
|
|
|
if ( this.editableElement ) {
|
|
if ( this.editableElement ) {
|
|
|
throw new CKEditorError(
|
|
throw new CKEditorError(
|
|
@@ -54,8 +55,8 @@ export default class EditableUIView extends View {
|
|
|
|
|
|
|
|
Object.assign( def.attributes, {
|
|
Object.assign( def.attributes, {
|
|
|
role: 'textbox',
|
|
role: 'textbox',
|
|
|
- 'aria-label': t( 'Rich Text Editor, %0', [ this.model.editableName ] ),
|
|
|
|
|
- title: t( 'Rich Text Editor, %0', [ this.model.editableName ] ),
|
|
|
|
|
|
|
+ 'aria-label': label,
|
|
|
|
|
+ title: label,
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
def.attributes.class.push(
|
|
def.attributes.class.push(
|