浏览代码

Merge branch 'stable'

Marek Lewandowski 6 年之前
父节点
当前提交
a28cb244aa

+ 2 - 2
packages/ckeditor5-image/docs/_snippets/features/image-style.html

@@ -1,11 +1,11 @@
 <div id="snippet-image-style">
-	<p>This is full width image (default style):</p>
+	<p>This is a full-width image (default style):</p>
 
 	<figure class="image">
 		<img src="%BASE_PATH%/assets/img/fields.jpg" alt="Autumn fields">
 	</figure>
 
-	<p>This is side image:</p>
+	<p>This is a side image:</p>
 
 	<figure class="image image-style-side">
 		<img src="%BASE_PATH%/assets/img/fields.jpg" alt="Autumn fields">

文件差异内容过多而无法显示
+ 30 - 25
packages/ckeditor5-image/docs/features/image.md


+ 1 - 1
packages/ckeditor5-image/src/imageresize.js

@@ -145,7 +145,7 @@ export default class ImageResize extends Plugin {
 /**
  * The available options are `'px'` or `'%'`.
  *
- * Determines size unit applied to resized image.
+ * Determines the size unit applied to the resized image.
  *
  *		ClassicEditor
  *			.create( editorElement, {

+ 4 - 4
packages/ckeditor5-image/theme/imageresize.css

@@ -6,20 +6,20 @@
 .ck-content .image.image_resized {
 	max-width: 100%;
 	/*
-	The figure element for resized images must not use `display:table` as browsers doesn't support `max-width` for it well.
+	The `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.
 	See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.
-	Fortunately, since we control width, there's no risk that the image will look bad.
+	Fortunately, since we control the width, there is no risk that the image will look bad.
 	*/
 	display: block;
 	box-sizing: border-box;
 
 	& img {
-		/* For resized images it's the figure that determines the image's width. */
+		/* For resized images it is the `<figure>` element that determines the image width. */
 		width: 100%;
 	}
 
 	& > figcaption {
-		/* Figure uses display block, so figcaption also has to. */
+		/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */
 		display: block;
 	}
 }