We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d981e4a + 5818c4e commit d0ea1d8Copy full SHA for d0ea1d8
src/editor.js
@@ -27,6 +27,8 @@ import { ACTION_ATTACHMENT_PROMPT } from './components/Editor/MediaHandler.provi
27
__webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line
28
__webpack_public_path__ = OC.linkTo('text', 'js/') // eslint-disable-line
29
30
+const apiVersion = '1.0'
31
+
32
Vue.prototype.t = window.t
33
Vue.prototype.n = window.n
34
Vue.prototype.OCA = window.OCA
@@ -126,6 +128,7 @@ class TextEditorEmbed {
126
128
127
129
}
130
131
+window.OCA.Text.apiVersion = apiVersion
132
window.OCA.Text.createEditor = async function({
133
// Element to render the editor to
134
el,
0 commit comments