Parcourir la source

Use contenteditable instead of contentEditable attribute in EditableUIView class to enable editing.

Aleksander Nowodzinski il y a 9 ans
Parent
commit
beb4160f83
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/ckeditor5-ui/src/editableui/editableuiview.js

+ 2 - 2
packages/ckeditor5-ui/src/editableui/editableuiview.js

@@ -48,8 +48,8 @@ export default class EditableUIView extends View {
 
 		this.applyTemplateToElement( editableElement, {
 			attributes: {
-				contentEditable: bind.to( 'isEditable' ),
-				class: [ bind.to( 'isFocused', value => value ? 'ck-focused' : 'ck-blurred' ) ]
+				contenteditable: bind.to( 'isEditable' ),
+				class: bind.to( 'isFocused', value => value ? 'ck-focused' : 'ck-blurred' )
 			}
 		} );
 	}