🖊 rename toolbar button to downloadDocx, got @esi_package/ckeditor5-export@0.0.2

This commit is contained in:
Sahatsawat Kanpai 2025-01-24 12:25:57 +07:00
parent 229f64b62a
commit 4c43c8de16
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@esi_package/ckeditor5-export", "name": "@esi_package/ckeditor5-export",
"version": "0.0.1", "version": "0.0.2",
"description": "A plugin for CKEditor 5.", "description": "A plugin for CKEditor 5.",
"keywords": [ "keywords": [
"ckeditor", "ckeditor",

View File

@ -84,7 +84,7 @@ ClassicEditor
'undo', 'undo',
'redo', 'redo',
'|', '|',
'exportButton', 'downloadDocx',
'mathlive', 'mathlive',
'|', '|',
'heading', 'heading',

View File

@ -17,12 +17,12 @@ export default class Export extends Plugin {
const t = editor.t; const t = editor.t;
const model = editor.model; const model = editor.model;
// Add the "exportButton" to feature components. // Add the "downloadDocx" to feature components.
editor.ui.componentFactory.add( 'exportButton', locale => { editor.ui.componentFactory.add( 'downloadDocx', locale => {
const view = new ButtonView( locale ); const view = new ButtonView( locale );
view.set( { view.set( {
label: t( 'Export' ), label: t( 'Download Docx' ),
icon: ckeditor5Icon, icon: ckeditor5Icon,
tooltip: true tooltip: true
} ); } );