Skip to content

Commit

Permalink
Merge pull request #4841 from nextcloud/backport/4840/stable27
Browse files Browse the repository at this point in the history
[stable27] enh(editorApi): Introduce editor API version number
  • Loading branch information
mejo- authored Oct 11, 2023
2 parents fd8be89 + fc962fe commit da21797
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/text-editors.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-editors.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import { ACTION_ATTACHMENT_PROMPT } from './components/Editor/MediaHandler.provi
__webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line
__webpack_public_path__ = OC.linkTo('text', 'js/') // eslint-disable-line

const apiVersion = '1.0'

Vue.prototype.t = window.t
Vue.prototype.n = window.n
Vue.prototype.OCA = window.OCA
Expand Down Expand Up @@ -126,6 +128,7 @@ class TextEditorEmbed {

}

window.OCA.Text.apiVersion = apiVersion
window.OCA.Text.createEditor = async function({
// Element to render the editor to
el,
Expand Down

0 comments on commit da21797

Please sign in to comment.