|
@@ -10,7 +10,6 @@
|
|
|
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
|
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
|
|
import { createDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
|
|
import { createDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
|
|
|
import specialCharactersIcon from '../theme/icons/specialcharacters.svg';
|
|
import specialCharactersIcon from '../theme/icons/specialcharacters.svg';
|
|
|
-import InsertSpecialCharacterCommand from './insertspecialcharactercommand';
|
|
|
|
|
import SpecialCharactersTableView from './ui/specialcharacterstableview';
|
|
import SpecialCharactersTableView from './ui/specialcharacterstableview';
|
|
|
import SpecialCharactersSelectView from './ui/specialcharactersselectview';
|
|
import SpecialCharactersSelectView from './ui/specialcharactersselectview';
|
|
|
|
|
|
|
@@ -25,9 +24,7 @@ export default class SpecialCharactersUI extends Plugin {
|
|
|
const t = editor.t;
|
|
const t = editor.t;
|
|
|
const specialCharacterPlugin = editor.plugins.get( 'SpecialCharacters' );
|
|
const specialCharacterPlugin = editor.plugins.get( 'SpecialCharacters' );
|
|
|
const label = t( 'Special characters' );
|
|
const label = t( 'Special characters' );
|
|
|
-
|
|
|
|
|
- const command = new InsertSpecialCharacterCommand( editor );
|
|
|
|
|
- editor.commands.add( 'specialCharacters', command );
|
|
|
|
|
|
|
+ const command = editor.commands.get( 'specialCharacters' );
|
|
|
|
|
|
|
|
// Add the `specialCharacters` dropdown button to feature components.
|
|
// Add the `specialCharacters` dropdown button to feature components.
|
|
|
editor.ui.componentFactory.add( 'specialCharacters', locale => {
|
|
editor.ui.componentFactory.add( 'specialCharacters', locale => {
|