diff --git a/package.json b/package.json index 18f7e45..f1444ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@esi_package/ckeditor5-export", - "version": "0.0.1", + "version": "0.0.2", "description": "A plugin for CKEditor 5.", "keywords": [ "ckeditor", diff --git a/sample/ckeditor.ts b/sample/ckeditor.ts index 9d74da7..cf01346 100644 --- a/sample/ckeditor.ts +++ b/sample/ckeditor.ts @@ -84,7 +84,7 @@ ClassicEditor 'undo', 'redo', '|', - 'exportButton', + 'downloadDocx', 'mathlive', '|', 'heading', diff --git a/src/export.ts b/src/export.ts index 19e2b03..d8d3803 100644 --- a/src/export.ts +++ b/src/export.ts @@ -17,12 +17,12 @@ export default class Export extends Plugin { const t = editor.t; const model = editor.model; - // Add the "exportButton" to feature components. - editor.ui.componentFactory.add( 'exportButton', locale => { + // Add the "downloadDocx" to feature components. + editor.ui.componentFactory.add( 'downloadDocx', locale => { const view = new ButtonView( locale ); view.set( { - label: t( 'Export' ), + label: t( 'Download Docx' ), icon: ckeditor5Icon, tooltip: true } );