Did you use the result of the remove call to create a new schema, or did you expect it to change the existing schema? (In the latter case, that’s not how it works.)
If you’re wanting to customize the schema, you’re probably ready to move away from using prosemirror-schema-basic directly. You can use that module as the basis for your new document and build from there. Once you master it, modifying your schema is one of the most enjoyable parts of using ProseMirror.
In fact, many of those lines are comments. Use that structure as the basis for your new schema. If you’re wanting to remove images, find the nodes dictionary and remove the image entry. That’s it!
The doc node is your top-level node type for the whole document. In this case the document simply contains one or more block nodes. There is no node type called block, but several node types have group: "block",.
From there you can move on to modifying marks (e.g. you could remove “bold” functionality by removing the strong mark or add a new underline mark).
The important idea here is that you’re not modifying your document schema at runtime unless you have a really good reason to do so and you understand the implications of doing so. Otherwise, don’t be afraid to dig into the details.
Thanks, i actually just have started from scratch with prosemirror couple of weeks ago and for now i’m trying to finish a project on deadlines. Otherwise sure i’m not afraid, i’m trying to dig from time time into PM internals and i wish i ll know all what’s under the hood soon