Tidying
This commit is contained in:
@@ -148,9 +148,9 @@ const editor = useEditor({
|
|||||||
content: "<p>I'm running Tiptap with Vue.js. 🎉</p>",
|
content: "<p>I'm running Tiptap with Vue.js. 🎉</p>",
|
||||||
extensions: [TiptapStarterKit],
|
extensions: [TiptapStarterKit],
|
||||||
onUpdate({editor}) {
|
onUpdate({editor}) {
|
||||||
console.log(editor.getJSON())
|
//console.log(editor.getJSON())
|
||||||
console.log(editor.getHTML())
|
//console.log(editor.getHTML())
|
||||||
console.log(editor.getText())
|
//console.log(editor.getText())
|
||||||
emit('updateContent',{json: editor.getJSON(),html: editor.getHTML(), text: editor.getText()})
|
emit('updateContent',{json: editor.getJSON(),html: editor.getHTML(), text: editor.getText()})
|
||||||
},
|
},
|
||||||
onCreate({editor}) {
|
onCreate({editor}) {
|
||||||
|
|||||||
@@ -59,8 +59,6 @@ setupPage()
|
|||||||
</template>
|
</template>
|
||||||
</UDashboardToolbar>
|
</UDashboardToolbar>
|
||||||
|
|
||||||
{{linkedDocument}}
|
|
||||||
|
|
||||||
<object
|
<object
|
||||||
:data="dataStore.documents.find(i => i.createdDocument === itemInfo.id) ? dataStore.documents.find(i => i.createdDocument === itemInfo.id).url : ''"
|
:data="dataStore.documents.find(i => i.createdDocument === itemInfo.id) ? dataStore.documents.find(i => i.createdDocument === itemInfo.id).url : ''"
|
||||||
class="h-full"
|
class="h-full"
|
||||||
|
|||||||
@@ -34,13 +34,13 @@ const setupPage = async () => {
|
|||||||
|
|
||||||
|
|
||||||
if(route.query.loadDocuments) {
|
if(route.query.loadDocuments) {
|
||||||
console.log(JSON.parse(route.query.loadDocuments))
|
//console.log(JSON.parse(route.query.loadDocuments))
|
||||||
const {data,error} = await supabase.from("documents").select('*, createdDocument(id,documentNumber,title,contact(email))').in('id',JSON.parse(route.query.loadDocuments))
|
const {data,error} = await supabase.from("documents").select('*, createdDocument(id,documentNumber,title,contact(email))').in('id',JSON.parse(route.query.loadDocuments))
|
||||||
|
|
||||||
if(error) console.log(error)
|
if(error) console.log(error)
|
||||||
if(data) loadedDocuments.value = data
|
if(data) loadedDocuments.value = data
|
||||||
|
|
||||||
console.log(loadedDocuments.value)
|
//console.log(loadedDocuments.value)
|
||||||
|
|
||||||
if(loadedDocuments.value.length > 0) {
|
if(loadedDocuments.value.length > 0) {
|
||||||
emailData.value.subject = loadedDocuments.value[0].createdDocument.title
|
emailData.value.subject = loadedDocuments.value[0].createdDocument.title
|
||||||
|
|||||||
Reference in New Issue
Block a user