|
|
|
|
@ -7,8 +7,7 @@ import { ButtonView } from 'ckeditor5/src/ui';
|
|
|
|
|
* NOTE: This source file is not used by Drupal unless you build it. |
|
|
|
|
* The build output lives in ../build/footnotepicker2.js |
|
|
|
|
*/ |
|
|
|
|
import { Plugin } from 'ckeditor5/src/core'; |
|
|
|
|
import { ButtonView } from 'ckeditor5/src/ui'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default class FootnotePicker2 extends Plugin { |
|
|
|
|
init() { |
|
|
|
|
@ -17,9 +16,9 @@ export default class FootnotePicker2 extends Plugin {
|
|
|
|
|
editor.ui.componentFactory.add('footnotePicker2', (locale) => { |
|
|
|
|
const button = new ButtonView(locale); |
|
|
|
|
button.set({ |
|
|
|
|
label: 'Footnote', |
|
|
|
|
label: 'Reference Footnotes', |
|
|
|
|
withText: true, |
|
|
|
|
tooltip: 'Insert footnote', |
|
|
|
|
tooltip: 'Insert reference footnote', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
button.on('execute', () => { |
|
|
|
|
|