|
@@ -109,8 +109,8 @@ class MarkdownTextarea {
|
|
waitForEncoding: true,
|
|
waitForEncoding: true,
|
|
params: {
|
|
params: {
|
|
auth: { key: TRANSLOADIT_EXAMPLE_KEY },
|
|
auth: { key: TRANSLOADIT_EXAMPLE_KEY },
|
|
- template_id: TRANSLOADIT_EXAMPLE_TEMPLATE
|
|
|
|
- }
|
|
|
|
|
|
+ template_id: TRANSLOADIT_EXAMPLE_TEMPLATE,
|
|
|
|
+ },
|
|
}).then((result) => {
|
|
}).then((result) => {
|
|
if (result === null) return
|
|
if (result === null) return
|
|
this.insertAttachments(
|
|
this.insertAttachments(
|
|
@@ -127,15 +127,15 @@ class MarkdownTextarea {
|
|
waitForEncoding: true,
|
|
waitForEncoding: true,
|
|
params: {
|
|
params: {
|
|
auth: { key: TRANSLOADIT_EXAMPLE_KEY },
|
|
auth: { key: TRANSLOADIT_EXAMPLE_KEY },
|
|
- template_id: TRANSLOADIT_EXAMPLE_TEMPLATE
|
|
|
|
|
|
+ template_id: TRANSLOADIT_EXAMPLE_TEMPLATE,
|
|
},
|
|
},
|
|
providers: [
|
|
providers: [
|
|
'webcam',
|
|
'webcam',
|
|
'url',
|
|
'url',
|
|
'instagram',
|
|
'instagram',
|
|
'google-drive',
|
|
'google-drive',
|
|
- 'dropbox'
|
|
|
|
- ]
|
|
|
|
|
|
+ 'dropbox',
|
|
|
|
+ ],
|
|
}).then((result) => {
|
|
}).then((result) => {
|
|
if (result === null) return
|
|
if (result === null) return
|
|
this.insertAttachments(
|
|
this.insertAttachments(
|
|
@@ -148,8 +148,7 @@ class MarkdownTextarea {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-const textarea = new MarkdownTextarea(
|
|
|
|
- document.querySelector('#new textarea'))
|
|
|
|
|
|
+const textarea = new MarkdownTextarea(document.querySelector('#new textarea'))
|
|
textarea.install()
|
|
textarea.install()
|
|
|
|
|
|
function renderSnippet (title, text) {
|
|
function renderSnippet (title, text) {
|