Hide some icons on mobile to avoid fullscreen mobile icon wrapping in rich text editor
This commit is contained in:
parent
90514af833
commit
48ce006ac3
|
@ -8,6 +8,7 @@
|
||||||
export let height = null
|
export let height = null
|
||||||
export let id = null
|
export let id = null
|
||||||
export let fullScreenOffset = 0
|
export let fullScreenOffset = 0
|
||||||
|
export let easyMDEOptions = null
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class:error>
|
<div class:error>
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
{id}
|
{id}
|
||||||
{fullScreenOffset}
|
{fullScreenOffset}
|
||||||
{disabled}
|
{disabled}
|
||||||
|
{easyMDEOptions}
|
||||||
on:change
|
on:change
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
export let height = null
|
export let height = null
|
||||||
export let id = null
|
export let id = null
|
||||||
export let fullScreenOffset = 0
|
export let fullScreenOffset = 0
|
||||||
|
export let easyMDEOptions = null
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
const onChange = e => {
|
const onChange = e => {
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
{height}
|
{height}
|
||||||
{id}
|
{id}
|
||||||
{fullScreenOffset}
|
{fullScreenOffset}
|
||||||
|
{easyMDEOptions}
|
||||||
on:change={onChange}
|
on:change={onChange}
|
||||||
/>
|
/>
|
||||||
</Field>
|
</Field>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
export let id = null
|
export let id = null
|
||||||
export let fullScreenOffset = 0
|
export let fullScreenOffset = 0
|
||||||
export let disabled = false
|
export let disabled = false
|
||||||
|
export let easyMDEOptions
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@
|
||||||
easyMDEOptions={{
|
easyMDEOptions={{
|
||||||
initialValue: value,
|
initialValue: value,
|
||||||
placeholder,
|
placeholder,
|
||||||
|
...easyMDEOptions,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/key}
|
{/key}
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
unorderedListStyle: "-",
|
unorderedListStyle: "-",
|
||||||
maxHeight: scroll ? height : undefined,
|
maxHeight: scroll ? height : undefined,
|
||||||
minHeight: scroll ? undefined : height,
|
minHeight: scroll ? undefined : height,
|
||||||
// hideIcons: ["fullscreen", "side-by-side"],
|
|
||||||
...easyMDEOptions,
|
...easyMDEOptions,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,9 @@
|
||||||
{placeholder}
|
{placeholder}
|
||||||
{height}
|
{height}
|
||||||
fullScreenOffset={offset}
|
fullScreenOffset={offset}
|
||||||
|
easyMDEOptions={{
|
||||||
|
hideIcons: $context.device.mobile ? ["side-by-side", "guide"] : [],
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</Field>
|
</Field>
|
||||||
|
|
Loading…
Reference in New Issue