baidu / baidu/amis

富文本p标签 自动添加,如何修改

Open
#7,747 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 实现场景:
富文本Rich Text组件中,使用该组件时,自动添加p标签,采用设置options下的forced_root_block=“”时,无法生效

#### 存在的问题:
请告知我一下这个设置如何使用,我看了TinyMCE的文档是在init中加入这个属性的

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Rich Text component and trace how its options are passed into the TinyMCE initialization described in the issue. Reproduce the automatic p-tag insertion with forced_root_block set to an empty value, then verify whether the option is supported and document or correct the configuration so the intended behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.