How to initialize document in ProseMirror with Y.js

Glad you figured it out @ShenQingchuan! Regarding the read-only feature, you can maybe have a look at this thread: "read-only" or one-way only sync

How about you post your graduation project here when you are done? Use a “show” and tell us what you learned.