webxdc/editor
16
9
Fork
You've already forked editor
2

WIP: Add realtime editor presence #111

Draft
jackaperkins wants to merge 4 commits from add-presence into main
pull from: add-presence
merge into: webxdc:main
webxdc:main
webxdc:tooling
webxdc:link2xt/autosave-interval-limit
webxdc:hpk/tryquill
webxdc:hpk/cleanup-indexhtml
webxdc:target-legacy
webxdc:inline-b64
webxdc:webxdc-x-web-version
webxdc:pages-demo
webxdc:status-string
webxdc:toolbar-position-sticky

Mostly copied over directly from the now unmaintained https://codeberg.org/durian/editor/

Cleaned up the css and made dark mode support work in the menus

Mostly copied over directly from the now unmaintained https://codeberg.org/durian/editor/ Cleaned up the css and made dark mode support work in the menus
@ -4,0 +84,4 @@
return;
}
// Make sure we update the
Contributor
Copy link

Make sure we update the what?

Make sure we update the what?
@ -4,0 +82,4 @@
if (isRealTime) {
this.realtimeChannel.send(new TextEncoder().encode(JSON.stringify(update.payload)));
return;
}
Contributor
Copy link

I'd move this if-block up before const update = .. and just use JSON.stringify(payload)

I'd move this if-block up before `const update = ..` and just use `JSON.stringify(payload)`
@ -4,0 +64,4 @@
}
syncToChatPeers(isRealTime) {
const { document, summary, startinfo } = this.getEditInfo();
Contributor
Copy link

This row isn't used by real time so can be moved below real time update, but before const update = ..

This row isn't used by real time so can be moved below real time update, but before `const update = ..`
Contributor
Copy link

Added some comments to make syncToChatPeers() a bit more separated in the two cases, real time and not real time.

Added some comments to make `syncToChatPeers()` a bit more separated in the two cases, real time and not real time.
faassen changed title from (削除) Add realtime editor presence (削除ここまで) to WIP: Add realtime editor presence 2026年07月02日 16:53:03 +02:00

I'm working on porting over some of this now. I first want to make y-webxdc realtime capable so we don't need to carry a fork here, but this is useful to study to identify both the changes and the comments, so I'm keeping this open as a WIP reference.

I'm working on porting over some of this now. I first want to make y-webxdc realtime capable so we don't need to carry a fork here, but this is useful to study to identify both the changes and the comments, so I'm keeping this open as a WIP reference.
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin add-presence:add-presence
git switch add-presence

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff add-presence
git switch add-presence
git rebase main
git switch main
git merge --ff-only add-presence
git switch add-presence
git rebase main
git switch main
git merge --no-ff add-presence
git switch main
git merge --squash add-presence
git switch main
git merge --ff-only add-presence
git switch main
git merge add-presence
git push origin main
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
webxdc/editor!111
Reference in a new issue
webxdc/editor
No description provided.
Delete branch "add-presence"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?