浏览代码

Docs: Fixed CKEDITOR_VERSION collision error in the editor placeholder guide. Closes #1542.

Aleksander Nowodzinski 6 年之前
父节点
当前提交
ed596d7d8d

+ 1 - 3
docs/_snippets/features/placeholder-custom.js

@@ -3,9 +3,7 @@
  * For licensing, see LICENSE.md.
  * For licensing, see LICENSE.md.
  */
  */
 
 
-/* globals console, window, document */
-
-import ClassicEditor from '@ckeditor/ckeditor5-build-classic/src/ckeditor';
+/* globals console, window, document, ClassicEditor */
 
 
 ClassicEditor
 ClassicEditor
 	.create( document.querySelector( '#snippet-placeholder-custom' ), {
 	.create( document.querySelector( '#snippet-placeholder-custom' ), {

+ 1 - 3
docs/_snippets/features/placeholder.js

@@ -3,9 +3,7 @@
  * For licensing, see LICENSE.md.
  * For licensing, see LICENSE.md.
  */
  */
 
 
-/* globals console, window, document */
-
-import ClassicEditor from '@ckeditor/ckeditor5-build-classic/src/ckeditor';
+/* globals console, window, document, ClassicEditor */
 
 
 ClassicEditor
 ClassicEditor
 	.create( document.querySelector( '#snippet-placeholder' ), {
 	.create( document.querySelector( '#snippet-placeholder' ), {

+ 2 - 0
docs/features/placeholder.md

@@ -2,6 +2,8 @@
 category: features
 category: features
 ---
 ---
 
 
+{@snippet build-classic-source}
+
 # Editor placeholder
 # Editor placeholder
 
 
 CKEditor 5 can display a configurable placeholder text when the content is empty. The placeholder helps users locate the editor in the application and prompts to input the content. It works similarly to the native DOM [`placeholder` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#The_placeholder_attribute) used by inputs.
 CKEditor 5 can display a configurable placeholder text when the content is empty. The placeholder helps users locate the editor in the application and prompts to input the content. It works similarly to the native DOM [`placeholder` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#The_placeholder_attribute) used by inputs.