|
|
|
@ -16,6 +16,7 @@ const TEXT_FORMATTING_GROUP = {
|
|
|
|
|
|
|
|
|
|
|
|
export async function buildConfig(): Promise<EditorConfig> {
|
|
|
|
export async function buildConfig(): Promise<EditorConfig> {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
licenseKey: getLicenseKey(),
|
|
|
|
image: {
|
|
|
|
image: {
|
|
|
|
styles: {
|
|
|
|
styles: {
|
|
|
|
options: [
|
|
|
|
options: [
|
|
|
|
@ -276,3 +277,13 @@ export function buildFloatingToolbar() {
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getLicenseKey() {
|
|
|
|
|
|
|
|
const premiumLicenseKey = import.meta.env.VITE_CKEDITOR_KEY;
|
|
|
|
|
|
|
|
if (!premiumLicenseKey) {
|
|
|
|
|
|
|
|
logError("CKEditor license key is not set, premium features will not be available.");
|
|
|
|
|
|
|
|
return "GPL";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return premiumLicenseKey;
|
|
|
|
|
|
|
|
}
|
|
|
|
|