Browse Source

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

Aleksander Nowodzinski 9 năm trước cách đây
mục cha
commit
beb4160f83
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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' )
 			}
 		} );
 	}