瀏覽代碼

Merge pull request #240 from ckeditor/t/236,239

Docs: Enabled text wrapping to the new line in the decorators demo output. Simplified the markup of the decorators demo in the link feature guide. Closes #236. Closes #239.
Piotrek Koszuliński 6 年之前
父節點
當前提交
a91af00e72

+ 19 - 6
packages/ckeditor5-link/docs/_snippets/features/linkdecorators.html

@@ -1,10 +1,23 @@
-<div id="snippet-link-decorators">
-	<p>
-		An <a href="https://ckeditor.com">external page</a> and a
-		<a download="download" href="https://cdn.ckeditor.com/ckeditor5/12.2.0/classic/ckeditor.js">downloadable resource</a>.
-	</p>
-</div>
+<!-- Used a textarea because of https://github.com/ckeditor/ckeditor5-link/pull/240#issuecomment-509269480 -->
+<textarea id="snippet-link-decorators">
+	&lt;p>
+		An &lt;a href="https://ckeditor.com">external page&lt;/a> and a
+		&lt;a download="download" href&#61;"image.png">downloadable resource&lt;/a>.
+	&lt;/p>
+</textarea>
 
 <pre class="highlight">
 	<code class="html hljs" id="output-link-decorators"></code>
 </pre>
+
+<style>
+	/*
+	 * The output is easier to read when it wraps to the next line.
+	 * See https://github.com/ckeditor/ckeditor5-link/issues/236.
+	 */
+	#output-link-decorators {
+		overflow: hidden;
+		white-space: normal;
+		word-break: break-all;
+	}
+</style>

文件差異過大導致無法顯示
+ 2 - 2
packages/ckeditor5-link/docs/features/link.md