Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e528080c authored by VIAUD Nathan's avatar VIAUD Nathan
Browse files

WIP: starting to declare specific options

parent d0c27016
No related branches found
No related tags found
No related merge requests found
Pipeline #964002 passed
......@@ -109,6 +109,31 @@ defineExpose({
focusEditor
});
const standardOptions = {
menubar: false,
min_height: 150,
max_height: 800,
height: 350,
templates: [
{ title: 'Plier/déplier', content: template, description: 'Plier/déplier avec titre et contenu' },
],
file_picker_types: 'image',
file_picker_callback: handleFilePicker,
link_default_target: '_blank',
link_target_list: false,
paste_data_images: true,
};
const textOptions = {
menubar: false,
min_height: 150,
max_height: 800,
height: 350,
link_target_list: false,
paste_data_images: false,
};
</script>
<template>
......@@ -118,20 +143,7 @@ defineExpose({
api-key="no-api-key"
:plugins="plugins"
:toolbar="toolbar"
:init="{
menubar: false,
min_height: 150,
max_height: 800,
height: 350,
templates: [
{ title: 'Plier/déplier', content: template, description: 'Plier/déplier avec titre et contenu' },
],
file_picker_types: 'image',
file_picker_callback: handleFilePicker,
link_default_target: '_blank',
link_target_list: false,
paste_data_images: false,
}"
:init="standardOptions"
@init="init"
@drop.stop.prevent="drop"
@focus="onFocus"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment