mirror of
https://github.com/codex-team/editor.js
synced 2026-03-18 00:19:53 +01:00
Fix text block tunes
This commit is contained in:
parent
5d1584cb3b
commit
3b4d18b339
2 changed files with 2 additions and 2 deletions
|
|
@ -651,7 +651,7 @@ export default class Block extends EventsDispatcher<BlockEvents> {
|
|||
const tunesItems: PopoverItem[] = [];
|
||||
|
||||
/** Tool's tunes: may be defined as return value of optional renderSettings method */
|
||||
const tunesDefinedInTool = typeof this.toolInstance.renderSettings === 'function' && this.toolInstance.renderSettings();
|
||||
const tunesDefinedInTool = typeof this.toolInstance.renderSettings === 'function' ? this.toolInstance.renderSettings() : [];
|
||||
|
||||
/** Common tunes: combination of default tunes (move up, move down, delete) and third-party tunes connected via tunes api */
|
||||
const commonTunes = [
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import $ from '../../dom';
|
|||
import * as _ from '../../utils';
|
||||
import SelectionUtils from '../../selection';
|
||||
import Block from '../../block';
|
||||
import Popover, { PopoverEvent, PopoverItem } from '../../utils/popover';
|
||||
import Popover, { PopoverEvent } from '../../utils/popover';
|
||||
import I18n from '../../i18n';
|
||||
import { I18nInternalNS } from '../../i18n/namespace-internal';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue