Skip to content

Commit

Permalink
Merge branch 'dev-docs' into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
imzbf committed Aug 29, 2024
2 parents e24b4f5 + 51bc438 commit 2de43cc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/demo-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ yarn add md-editor-v3
npm install md-editor-v3
```

!!! warning

When using server-side rendering, make sure to set `editorId` to a constant value.

!!!

#### 🥱 Setup Template

```vue
Expand Down Expand Up @@ -104,8 +108,12 @@ const scrollElement = document.documentElement;
</script>
```

!!! warning

When using server-side rendering, `scrollElement` should be of string type, eg: `body`, `#id`, `.class`.

!!!

## 🎛 Used in Web Component

Complete example reference [the sample project](https://github.com/imzbf/md-editor-v3/tree/main/example/webComponent) provided in the source code.
Expand Down
8 changes: 8 additions & 0 deletions public/demo-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ yarn add md-editor-v3
npm install md-editor-v3
```

!!! warning

当使用服务端渲染时,请务必设置`editorId`为固定值。

!!!

#### 🥱 Setup 模板

```vue
Expand Down Expand Up @@ -105,8 +109,12 @@ const scrollElement = document.documentElement;
</script>
```

!!! warning

当使用服务端渲染时,`scrollElement`应该是字符类型,例:`body``#id``.class`

!!!

## 🎛 Web Component中使用

完整的示例参考源码中提供的[示例项目](https://github.com/imzbf/md-editor-v3/tree/main/example/webComponent)
Expand Down

0 comments on commit 2de43cc

Please sign in to comment.