|
|
@@ -12,20 +12,21 @@ import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
|
|
|
import icon from '../theme/icons/paragraph.svg';
|
|
|
|
|
|
/**
|
|
|
- * Class creates UI component representing paragraph button. It can be used together with
|
|
|
- * {@link module:heading/headingbuttonsui~HeadingButtonsUI} to replace heading dropdown used in toolbars.
|
|
|
+ * This plugin defines the `'paragraphs'` button. It can be used together with
|
|
|
+ * {@link module:heading/headingbuttonsui~HeadingButtonsUI} to replace the standard heading dropdown.
|
|
|
*
|
|
|
- * This plugin is not loaded automatically with {@link module:paragraph/paragraph~Paragraph paragraph plugin}. It must
|
|
|
- * be added manually in order to use `paragraph` component.
|
|
|
+ * This plugin is not loaded automatically by the {@link module:paragraph/paragraph~Paragraph} plugin. It must
|
|
|
+ * be added manually.
|
|
|
*
|
|
|
* ClassicEditor
|
|
|
* .create( {
|
|
|
* plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ]
|
|
|
- * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ]
|
|
|
+ * toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ]
|
|
|
* } )
|
|
|
* .then( ... )
|
|
|
* .catch( ... );
|
|
|
*
|
|
|
+ * @extends module:core/plugin~Plugin
|
|
|
*/
|
|
|
export default class ParagraphButtonUI extends Plugin {
|
|
|
init() {
|