Skip to content

Commit 429fef0

Browse files
committed
Add option to BaseTinyEditor component to show content in full page or not #2642
1 parent bddd687 commit 429fef0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

assets/vue/components/basecomponents/BaseTinyEditor.vue

+9-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ const props = defineProps({
7070
default: TINYEDITOR_MODE_PERSONAL_FILES,
7171
validator: (value) => TINYEDITOR_MODES.includes(value),
7272
},
73+
fullPage: {
74+
type: Boolean,
75+
required: false,
76+
default: true,
77+
},
7378
})
7479
const emit = defineEmits(["update:modelValue"])
7580
const router = useRouter()
@@ -119,7 +124,6 @@ const defaultEditorConfig = {
119124
"code",
120125
"codesample",
121126
"directionality",
122-
"fullpage",
123127
"fullscreen",
124128
"emoticons",
125129
"image",
@@ -167,6 +171,10 @@ const defaultEditorConfig = {
167171
file_picker_callback: filePickerCallback,
168172
}
169173
174+
if (props.fullPage) {
175+
defaultEditorConfig.plugins.push("fullpage")
176+
}
177+
170178
const editorConfig = computed(() => ({
171179
...defaultEditorConfig,
172180
...props.editorConfig,

0 commit comments

Comments
 (0)