Explorar el Código

Add additional class to form when manual decoratos are avialable in the editor.

Mateusz Samsel hace 6 años
padre
commit
21f517b6b8
Se han modificado 1 ficheros con 7 adiciones y 4 borrados
  1. 7 4
      packages/ckeditor5-link/src/ui/linkformview.js

+ 7 - 4
packages/ckeditor5-link/src/ui/linkformview.js

@@ -138,14 +138,17 @@ export default class LinkFormView extends View {
 			}
 		} );
 
+		const classList = [ 'ck', 'ck-link-form' ];
+
+		if ( this.manualDecorators.length ) {
+			classList.push( 'ck-link-form_decorators' );
+		}
+
 		this.setTemplate( {
 			tag: 'form',
 
 			attributes: {
-				class: [
-					'ck',
-					'ck-link-form',
-				],
+				class: classList,
 
 				// https://github.com/ckeditor/ckeditor5-link/issues/90
 				tabindex: '-1'