8
0
Просмотр исходного кода

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

Aleksander Nowodzinski 5 лет назад
Родитель
Сommit
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.

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

@@ -0,0 +1 @@
+<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5c4.694 0 8.5 2.764 8.5 5s-3.806 5-8.5 5S2 12.031 2 10s3.806-5 8.5-5zm3.081 1.921l.03.028A4.487 4.487 0 0 1 15 10.2a4.48 4.48 0 0 1-.919 2.725c2.047-.692 3.419-1.89 3.419-2.925 0-1.117-1.598-2.423-3.919-3.079zm-6.203.038l-.186.057C4.994 7.724 3.5 9.018 3.5 10c0 .936 1.356 2.155 3.385 2.88A4.476 4.476 0 0 1 6 10.2c0-1.273.529-2.423 1.378-3.241zm3.018-.066h-.013l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012A2.45 2.45 0 0 1 12.616 9.4c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.639.639 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001z"/></svg>

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

@@ -0,0 +1 @@
+<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17 0a2 2 0 0 1 2 2v7a1 1 0 0 1 1 1v5a1 1 0 0 1-.883.993l-.118.006L19 17a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2l-.001-1.001-.116-.006A1 1 0 0 1 0 15v-5a1 1 0 0 1 .999-1L1 2a2 2 0 0 1 2-2h14zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5l-.001-1.001zm-3.478-6.013l-.014.014H14v.007l-1.525 1.525-1.46-1.46-.015.013V10h-1v5h1v-3.53l1.428 1.43.048.043.131-.129L14 11.421V15h1v-5h-.965l-.014-.014zM2 10H1v5h1v-2h2v2h1v-5H4v2H2v-2zm7 0H6v1h1v4h1v-4h1v-1zm8 0h-1v5h3v-1h-2v-4zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5zM10 7v1H4V7h6zm3-2v1H4V5h9zm-3-2v1H4V3h6z"/></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>

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-html-embed/htmlembed.css


Некоторые файлы не были показаны из-за большого количества измененных файлов