浏览代码

Merge pull request #1551 from ckeditor/t/1542

Docs: Fixed `CKEDITOR_VERSION` collision error in the editor placeholder guide. Closes #1542.
Kamil Piechaczek 6 年之前
父节点
当前提交
826c1fd2b2

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

@@ -3,9 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
-/* globals console, window, document */
+/* globals console, window, document, ClassicEditor */
 
-import ClassicEditor from '@ckeditor/ckeditor5-build-classic/src/ckeditor';
 import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
 
 ClassicEditor

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

@@ -3,9 +3,8 @@
  * For licensing, see LICENSE.md.
  */
 
-/* globals console, window, document */
+/* globals console, window, document, ClassicEditor */
 
-import ClassicEditor from '@ckeditor/ckeditor5-build-classic/src/ckeditor';
 import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
 
 ClassicEditor

+ 2 - 0
docs/features/placeholder.md

@@ -2,6 +2,8 @@
 category: features
 ---
 
+{@snippet build-classic-source}
+
 # 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.