8
0
Pārlūkot izejas kodu

Added button icon. Added preview icon. Added preview background pattern.

Aleksander Nowodzinski 5 gadi atpakaļ
vecāks
revīzija
f35f326c89

+ 2 - 2
packages/ckeditor5-html-embed/src/htmlembedediting.js

@@ -16,7 +16,7 @@ import HtmlEmbedInsertCommand from './htmlembedinsertcommand';
 import HtmlEmbedUpdateCommand from './htmlembedupdatecommand';
 
 import pencilIcon from '@ckeditor/ckeditor5-core/theme/icons/pencil.svg';
-import vision from '@ckeditor/ckeditor5-core/theme/icons/low-vision.svg';
+import eyeIcon from '../theme/icons/eye.svg';
 
 import '../theme/htmlembed.css';
 
@@ -185,7 +185,7 @@ export default class HtmlEmbedEditing extends Plugin {
 							const textarea = sourceElement.getCustomProperty( 'domElement' );
 							textarea.disabled = !textarea.disabled;
 
-							root.innerHTML = textarea.disabled ? pencilIcon : vision;
+							root.innerHTML = textarea.disabled ? pencilIcon : eyeIcon;
 							root.firstChild.classList.add( 'ck', 'ck-icon', 'ck-button__icon' );
 						} );
 

+ 2 - 1
packages/ckeditor5-html-embed/src/htmlembedui.js

@@ -9,7 +9,8 @@
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
-import htmlEmbedIcon from '../theme/icons/htmlembed.svg';
+
+import htmlEmbedIcon from '../theme/icons/html.svg';
 
 /**
  * The HTML embed UI plugin.

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 0
packages/ckeditor5-html-embed/theme/icons/eye.svg


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 0
packages/ckeditor5-html-embed/theme/icons/html.svg


+ 0 - 1
packages/ckeditor5-html-embed/theme/icons/htmlembed.svg

@@ -1 +0,0 @@
-<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 3 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-html-embed/htmlembed.css