-
Notifications
You must be signed in to change notification settings - Fork 109
Editor frontend API #3615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor frontend API #3615
Conversation
88ee0bf to
02f9c0a
Compare
1 flaky tests on run #8418 ↗︎Details:
|
|||||||||||||||||||||
| Test | ||
|---|---|---|
| Open test.md in viewer > Share a file with download disabled shows an error |
Screenshot
|
|
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.
9943ce5 to
876d4aa
Compare
|
@mejo- @max-nextcloud Pinging for some early feedback on the general concept. I refactored quite a bit in terms of how the tiptap plugins are being gathered, but this should not have any breaking change for now in terms of the existing file editor and the components exposed to the npm packages. |
max-nextcloud
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a great start to me. 👍
At some point we might want a switch in collectives to toggle editing / read only. But from my point of view that does not have to land in a first iteration.
I really like the cleanup of the EditorFactory, moving the tiptap extensions into RichText.
|
So if I understand it correctly this provides editor related code under Would it not make more sense to use |
7947962 to
f6d2fea
Compare
Preparations for using the new editor API from Text, see nextcloud/text#3615 Signed-off-by: Jonas <[email protected]>
Preparations for using the new editor API from Text, see nextcloud/text#3615 Signed-off-by: Jonas <[email protected]>
Preparations for using the new editor API from Text, see nextcloud/text#3615 Signed-off-by: Jonas <[email protected]>
|
Before the merge:
|
Preparations for using the new editor API from Text, see nextcloud/text#3615 Signed-off-by: Jonas <[email protected]>
Sorry for the late reply @susnux. We discussed the pros and cons of different ways to provide Nextcloud Text as a global editor for different apps back and forth several times. The main advantage of the approach with providing the editor via |
3aabefe to
596ad41
Compare
|
Will rebase on top of #3700 since that refactors the mentions a bit |
37900dc to
1a1e304
Compare
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
mejo-
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huge thanks to @juliushaertl for all the work here ❤️
|
/compile |
juliusknorr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Demo still needs to be dropped
Signed-off-by: Julius Härtl <[email protected]>
…e features properly Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Jonas <[email protected]>
Signed-off-by: Jonas <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
…arkdown Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Jonas <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
88270b3 to
49a898f
Compare
📝 Summary
Very early draft for implementing a frontend API so that the text editor can be used by other apps.
There is a small demo page temporarily available at
/apps/text/that shows both usages as a file editor (e.g. for collectives) and as a editor based on providing markdown content (e.g. for deck).For now I've introduced a new MarkdownContentEditor component that is being used for editing text that is not sourced from files. This makes use of most components that are already used in the Editor component (which is currently the one for files).
Can be tested with
🚧 TODO
Follow up
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)