From 5e1f01580f0bfbf19cba092aee96f4f739a3ff8a Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Thu, 24 Sep 2020 16:09:32 +0200 Subject: [PATCH] wording --- docs/src/docPages/api/schema/get-schema.md | 4 ++-- docs/src/links.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/docPages/api/schema/get-schema.md b/docs/src/docPages/api/schema/get-schema.md index 9c547660..508105eb 100644 --- a/docs/src/docPages/api/schema/get-schema.md +++ b/docs/src/docPages/api/schema/get-schema.md @@ -2,7 +2,7 @@ There are a few use cases where you need to work with the underlying schema. You’ll need that if you’re using the tiptap collaborative text editing features or if you want to manually render your content as HTML. -## With an Editor +## Option 1: With an Editor If you need this on the client side and need an editor instance anyway, it’s available through the editor: ```js @@ -23,7 +23,7 @@ const editor = new Editor({ const schema = editor.schema ``` -## Without an Editor +## Option 2: Without an Editor If you just want to have the schema *without* initializing an actual editor, you can use the `getSchema` helper function. It needs an array of available extensions and conveniently generates a ProseMirror schema for you: ```js diff --git a/docs/src/links.yaml b/docs/src/links.yaml index 9efce473..9bb8a2a3 100644 --- a/docs/src/links.yaml +++ b/docs/src/links.yaml @@ -173,9 +173,9 @@ - title: Schema link: /api/schema items: - - title: getSchema + - title: Get Schema link: /api/schema/get-schema - - title: generateHtml + - title: Generate HTML link: /api/schema/generate-html - title: Keyboard Shortcuts link: /api/keyboard-shortcuts