🖊 rename toolbar button to downloadDocx, got @esi_package/ckeditor5-export@0.0.2
This commit is contained in:
parent
229f64b62a
commit
4c43c8de16
@ -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",
|
||||||
|
@ -84,7 +84,7 @@ ClassicEditor
|
|||||||
'undo',
|
'undo',
|
||||||
'redo',
|
'redo',
|
||||||
'|',
|
'|',
|
||||||
'exportButton',
|
'downloadDocx',
|
||||||
'mathlive',
|
'mathlive',
|
||||||
'|',
|
'|',
|
||||||
'heading',
|
'heading',
|
||||||
|
@ -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
|
||||||
} );
|
} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user