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