|
|
@@ -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">
|
|
|
+ <p>
|
|
|
+ An <a href="https://ckeditor.com">external page</a> and a
|
|
|
+ <a download="download" href="image.png">downloadable resource</a>.
|
|
|
+ </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>
|