Skip to content

Commit

Permalink
markdown add-link-docs (PR from TinaCMS) (#2662)
Browse files Browse the repository at this point in the history
TinaCMS content update

Co-authored-by: tina-cloud-app[bot] <58178390+tina-cloud-app[bot]@users.noreply.github.com>
Co-authored-by: Matt Wicks <[email protected]>
  • Loading branch information
tina-cloud-app[bot] and wicksipedia authored Dec 24, 2024
1 parent 0fe4f4b commit ff794a6
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions content/docs/reference/types/rich-text.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Change what you want to display and the order it is displayed in the editor
![](/img/docs/reference/blog-post.png)
Full list of `toolbarOverride` options:
Full list of `toolbarOverride` options:
```javascript
toolbarOverride: [
Expand All @@ -75,7 +75,6 @@ toolbarOverride: [
];
```


### Custom templates

```ts
Expand Down Expand Up @@ -295,6 +294,24 @@ This expression will be ignored, instead register a "Date" `template`:

Then you can create a `Date` component which returns `new Date().toLocaleString()` under the hood.

### Links must start with a supported scheme

When using hyperlinks in markdown within the markdown editor, ensure that the URLs begin with one of the following supported schemes:

* http
* https
* mailto
* tel
* xref

Any URLs not starting with these schemes will be ignored.

```javascript
e.g.
google.com
✅ https://tina.io
```

### All JSX must be registered as a `template`

In the above example, if you failed to add the `Cta` *template* in your schema definition, the JSX element
Expand Down

0 comments on commit ff794a6

Please sign in to comment.