|
|
|
@ -2,6 +2,11 @@ import { ALLOWED_PROTOCOLS } from "../../../services/link.js";
|
|
|
|
import options from "../../../services/options.js";
|
|
|
|
import options from "../../../services/options.js";
|
|
|
|
import utils from "../../../services/utils.js";
|
|
|
|
import utils from "../../../services/utils.js";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const TEXT_FORMATTING_GROUP = {
|
|
|
|
|
|
|
|
label: "Text formatting",
|
|
|
|
|
|
|
|
icon: "text"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export function buildConfig() {
|
|
|
|
export function buildConfig() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
image: {
|
|
|
|
image: {
|
|
|
|
@ -116,8 +121,7 @@ function buildClassicToolbar(multilineToolbar: boolean) {
|
|
|
|
"bold",
|
|
|
|
"bold",
|
|
|
|
"italic",
|
|
|
|
"italic",
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "Text formatting",
|
|
|
|
...TEXT_FORMATTING_GROUP,
|
|
|
|
icon: "text",
|
|
|
|
|
|
|
|
items: ["underline", "strikethrough", "superscript", "subscript", "code", "kbd"]
|
|
|
|
items: ["underline", "strikethrough", "superscript", "subscript", "code", "kbd"]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"|",
|
|
|
|
"|",
|
|
|
|
@ -159,10 +163,10 @@ function buildFloatingToolbar() {
|
|
|
|
"bold",
|
|
|
|
"bold",
|
|
|
|
"italic",
|
|
|
|
"italic",
|
|
|
|
"underline",
|
|
|
|
"underline",
|
|
|
|
"strikethrough",
|
|
|
|
{
|
|
|
|
"superscript",
|
|
|
|
...TEXT_FORMATTING_GROUP,
|
|
|
|
"subscript",
|
|
|
|
items: [ "strikethrough", "kbd", "superscript", "subscript" ]
|
|
|
|
"kbd",
|
|
|
|
},
|
|
|
|
"fontColor",
|
|
|
|
"fontColor",
|
|
|
|
"fontBackgroundColor",
|
|
|
|
"fontBackgroundColor",
|
|
|
|
"code",
|
|
|
|
"code",
|
|
|
|
|