Skip to content

Commit e5f9b48

Browse files
authored
Merge pull request #8108 from nextcloud/backport/8080/stable30
[stable30] fix: expose getHtml() to editor api
2 parents 78dc88f + 6b9fb83 commit e5f9b48

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/cypress-e2e.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ jobs:
4141
path: apps/viewer
4242

4343
- name: Register assistant Git reference
44+
if: matrix.server-versions == 'main'
4445
run: |
4546
assistant_app_ref="$(if [ "${{ matrix.server-versions }}" = "stable30" ]; then echo -n "main"; else echo -n "${{ matrix.server-versions }}"; fi)"
4647
echo "assistant_app_ref=$assistant_app_ref" >> $GITHUB_ENV
4748
4849
- name: Checkout assistant
50+
if: matrix.server-versions == 'main'
4951
uses: actions/checkout@v4.1.1
5052
with:
5153
repository: nextcloud/assistant
@@ -81,6 +83,7 @@ jobs:
8183
TESTING=true npm run build --if-present
8284
8385
- name: Install node dependencies & build assistant app
86+
if: matrix.server-versions == 'main'
8487
working-directory: apps/assistant
8588
run: |
8689
composer install --no-dev

src/components/Editor/PlainTableContentEditor.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<script>
1414
import { Editor } from '@tiptap/core'
15+
/* eslint-disable import/no-named-as-default */
1516
import History from '@tiptap/extension-history'
1617
import MainContainer from './MainContainer.vue'
1718
import Wrapper from './Wrapper.vue'

src/editor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ class TextEditorEmbed {
9191
return this
9292
}
9393

94+
getHTML() {
95+
const editor = this.#getEditorComponent()?.editor
96+
return editor?.getHTML()
97+
}
98+
9499
setSearchQuery(query, matchAll) {
95100
const editor = this.#getEditorComponent()?.$editor
96101
editor.commands.setSearchQuery(query, matchAll)

0 commit comments

Comments
 (0)