suneditor
Version:
Vanilla JavaScript based WYSIWYG web editor
33 lines (32 loc) • 809 B
TypeScript
import type {} from '../../typedef';
export default Font;
export type FontPluginOptions = {
/**
* - Font list
*/
items?: Array<string>;
};
/**
* @typedef {Object} FontPluginOptions
* @property {Array<string>} [items] - Font list
*/
/**
* @class
* @description Text font plugin
*/
declare class Font extends PluginDropdown {
/**
* @constructor
* @param {SunEditor.Kernel} kernel - The Kernel instance
* @param {FontPluginOptions} pluginOptions - plugin options
*/
constructor(kernel: SunEditor.Kernel, pluginOptions: FontPluginOptions);
title: any;
inner: string;
currentFont: string;
fontList: NodeListOf<Element>;
fontArray: string[];
active(element: HTMLElement | null, target: HTMLElement | null): boolean | void;
#private;
}
import { PluginDropdown } from '../../interfaces';