Add option to BaseTinyEditor component to show content in full page or not #2642

pull/5300/head
Angel Fernando Quiroz Campos 2 years ago
parent bddd68713c
commit 429fef0051
  1. 10
      assets/vue/components/basecomponents/BaseTinyEditor.vue

@ -70,6 +70,11 @@ const props = defineProps({
default: TINYEDITOR_MODE_PERSONAL_FILES,
validator: (value) => TINYEDITOR_MODES.includes(value),
},
fullPage: {
type: Boolean,
required: false,
default: true,
},
})
const emit = defineEmits(["update:modelValue"])
const router = useRouter()
@ -119,7 +124,6 @@ const defaultEditorConfig = {
"code",
"codesample",
"directionality",
"fullpage",
"fullscreen",
"emoticons",
"image",
@ -167,6 +171,10 @@ const defaultEditorConfig = {
file_picker_callback: filePickerCallback,
}
if (props.fullPage) {
defaultEditorConfig.plugins.push("fullpage")
}
const editorConfig = computed(() => ({
...defaultEditorConfig,
...props.editorConfig,

Loading…
Cancel
Save