Browse Source

name fixes

main
astanley 2 weeks ago
parent
commit
01ba15c39e
  1. 4
      bibcite_footnotes.ckeditor5.yml
  2. 2
      composer.json
  3. 6
      js/ckeditor5_plugins/footnotepicker2/build/footnotepicker2.js
  4. 7
      js/ckeditor5_plugins/footnotepicker2/src/plugin.js

4
bibcite_footnotes.ckeditor5.yml

@ -3,12 +3,12 @@ bibcite_footnotes_footnote_picker:
plugins:
- footnotepicker2.FootnotePicker2
drupal:
label: 'Footnote/Citation'
label: 'Reference Footnotes'
library: bibcite_footnotes/footnote_picker
admin_library: bibcite_footnotes/footnote_picker
toolbar_items:
footnotePicker2:
label: 'Footnote'
label: 'Reference Footnotes'
icon: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path d="M6.5 4.5c-.6 0-1 .4-1 1v4.2c0 .6.4 1 1 1h.8v1.7H6.2c-.6 0-1 .4-1 1v.4h3.3c.6 0 1-.4 1-1V10c0-.5-.3-.9-.7-1.1.4-.3.7-.7.7-1.3V5.5c0-.6-.4-1-1-1H6.5z"/><path d="M11 6h7v1.4h-7V6zm0 3h7v1.4h-7V9zm0 3h5v1.4h-5V12z"/></svg>'
elements:
- <fn>

2
composer.json

@ -1,5 +1,5 @@
{
"name": "roblib/bibcite_footnotes_2",
"name": "roblib/bibcite_footnotes",
"description": "Inline footnote links for BibCite References with CKEditor 4 and CKEditor 5 support.",
"type": "drupal-module",
"homepage": "https://drupal.org/project/bibcite_footnotes",

6
js/ckeditor5_plugins/footnotepicker2/build/footnotepicker2.js

@ -143,7 +143,7 @@
$wrapper.append('<div class="rf-hint">Leave blank for an automatic sequential reference number, or enter a custom footnote value</div>');
const dialog = Drupal.dialog($wrapper.get(0), {
title: 'Reference Footnotes Dialog',
title: 'Reference Footnotes',
width: 900,
buttons: [
{
@ -204,9 +204,9 @@
`;
button.set({
label: 'Footnote',
label: 'Reference Footnotes',
icon: footnoteIcon,
tooltip: 'Insert footnote',
tooltip: 'Insert reference footnote',
withText: false,
});

7
js/ckeditor5_plugins/footnotepicker2/src/plugin.js

@ -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', () => {

Loading…
Cancel
Save