更新文档: 测试一个代码
@@ -1,6 +1,6 @@
|
|||||||
```ts
|
```ts
|
||||||
{/* 内容 */}
|
{/* 内容 */}
|
||||||
// 当外部内容变化时,更新 Vditor 的值
|
// 当外部内容变化时,更新 Vditor 的值32132132
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// 只有在编辑器已初始化且不是用户编辑时才处理外部更新
|
// 只有在编辑器已初始化且不是用户编辑时才处理外部更新
|
||||||
if (isInitializedRef.current && vditorInstanceRef.current && !isUserEditingRef.current) {
|
if (isInitializedRef.current && vditorInstanceRef.current && !isUserEditingRef.current) {
|
||||||
|
|||||||
Reference in New Issue
Block a user