[#370] added rich text editor field

This commit is contained in:
Gani Georgiev
2023-01-17 13:31:48 +02:00
parent 6d08a5f36f
commit 2a4b3315c6
206 changed files with 17945 additions and 520 deletions
@@ -0,0 +1,6 @@
<script>
// svelte-ignore unused-export-let
export let key = "";
// svelte-ignore unused-export-let
export let options = {};
</script>
@@ -9,10 +9,15 @@
const types = [
{
label: "Text",
label: "Plain text",
value: "text",
icon: CommonHelper.getFieldTypeIcon("text"),
},
{
label: "Rich editor",
value: "editor",
icon: CommonHelper.getFieldTypeIcon("editor"),
},
{
label: "Number",
value: "number",
@@ -43,11 +48,6 @@
value: "select",
icon: CommonHelper.getFieldTypeIcon("select"),
},
{
label: "JSON",
value: "json",
icon: CommonHelper.getFieldTypeIcon("json"),
},
{
label: "File",
value: "file",
@@ -58,12 +58,12 @@
value: "relation",
icon: CommonHelper.getFieldTypeIcon("relation"),
},
{
label: "JSON",
value: "json",
icon: CommonHelper.getFieldTypeIcon("json"),
},
];
</script>
<ObjectSelect
class="field-type-select {classes}"
items={types}
bind:keyOfSelected={value}
{...$$restProps}
/>
<ObjectSelect class="field-type-select {classes}" items={types} bind:keyOfSelected={value} {...$$restProps} />