/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import { Config } from 'jodit/config'; // import { poll } from 'jodit/src/styles/icons'; declare module 'jodit/config' { interface Config { vote: { url: string; }; } } Config.prototype.controls.vote = { tooltip: 'Make a vote', icon: 'poll', name: 'poll', isMedia: true, isActive(editor): boolean { return Boolean(editor.e.fire('isVoteOpened')); }, exec: (editor, btn): void => { editor.e.fire('toggleVote', btn); } };