Преглед на файлове

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

Aleksander Nowodzinski преди 6 години
родител
ревизия
ed596d7d8d
променени са 3 файла, в които са добавени 4 реда и са изтрити 6 реда
  1. 1 3
      docs/_snippets/features/placeholder-custom.js
  2. 1 3
      docs/_snippets/features/placeholder.js
  3. 2 0
      docs/features/placeholder.md

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

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

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

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

+ 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.