Skip to content

Commit d0ea1d8

Browse files
authored
Merge pull request #4840 from nextcloud/enh/editor_api_version
enh(editorApi): Introduce editor API version number
2 parents d981e4a + 5818c4e commit d0ea1d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/editor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import { ACTION_ATTACHMENT_PROMPT } from './components/Editor/MediaHandler.provi
2727
__webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line
2828
__webpack_public_path__ = OC.linkTo('text', 'js/') // eslint-disable-line
2929

30+
const apiVersion = '1.0'
31+
3032
Vue.prototype.t = window.t
3133
Vue.prototype.n = window.n
3234
Vue.prototype.OCA = window.OCA
@@ -126,6 +128,7 @@ class TextEditorEmbed {
126128

127129
}
128130

131+
window.OCA.Text.apiVersion = apiVersion
129132
window.OCA.Text.createEditor = async function({
130133
// Element to render the editor to
131134
el,

0 commit comments

Comments
 (0)