tangled
alpha
login
or
join now
flo-bit.dev
/
blento
your personal website on atproto - mirror
blento.app
20
fork
atom
overview
issues
pulls
pipelines
formatting
Florian
2 weeks ago
40a71480
1f739491
+10
-11
2 changed files
expand all
collapse all
unified
split
src
lib
components
MarkdownTextEditor.svelte
website
EditableProfile.svelte
+3
-2
src/lib/components/MarkdownTextEditor.svelte
···
104
105
editorProps: {
106
attributes: {
107
-
class: 'outline-none w-full text-base-600 dark:text-base-400 prose dark:prose-invert prose-a:text-accent-500 prose-a:no-underline'
0
108
},
109
handleDOMEvents: { drop: () => false }
110
}
···
118
});
119
</script>
120
121
-
<div class={["w-full cursor-text", className]} bind:this={element}></div>
122
123
<style>
124
:global(.tiptap p.is-editor-empty:first-child::before) {
···
104
105
editorProps: {
106
attributes: {
107
+
class:
108
+
'outline-none w-full text-base-600 dark:text-base-400 prose dark:prose-invert prose-a:text-accent-500 prose-a:no-underline'
109
},
110
handleDOMEvents: { drop: () => false }
111
}
···
119
});
120
</script>
121
122
+
<div class={['w-full cursor-text', className]} bind:this={element}></div>
123
124
<style>
125
:global(.tiptap p.is-editor-empty:first-child::before) {
+7
-9
src/lib/website/EditableProfile.svelte
···
132
<!-- Editable Description -->
133
<div class="scrollbar -mx-4 grow overflow-x-hidden overflow-y-scroll px-4">
134
{#if data.publication}
135
-
136
-
137
-
<MarkdownTextEditor
138
-
bind:editor={descriptionEditor}
139
-
bind:contentDict={data.publication}
140
-
key="description"
141
-
placeholder="Add a description... (supports markdown)"
142
-
class=""
143
-
/>
144
{/if}
145
</div>
146
···
132
<!-- Editable Description -->
133
<div class="scrollbar -mx-4 grow overflow-x-hidden overflow-y-scroll px-4">
134
{#if data.publication}
135
+
<MarkdownTextEditor
136
+
bind:editor={descriptionEditor}
137
+
bind:contentDict={data.publication}
138
+
key="description"
139
+
placeholder="Add a description... (supports markdown)"
140
+
class=""
141
+
/>
0
0
142
{/if}
143
</div>
144