描述
通过接口插入一个段落。
适应于非回车按键产生新段落的场景
接口
bool InsertParagraph(const char* jsonStr)
json配置参数
参数名 | 必填 | 类型 | 说明 | 备注 |
---|---|---|---|---|
insertBefore | 否 | bool | 新段落是否插入到当前段落之前 | 0:默认值,新段落在当前段落之后 1:新段落在当前段落之前 |
更多配置参数参考SetParagraphConfig
示例代码
thinkEditor.InsertParagraph({insertBefore: true});
文档更新时间: 2024-11-18 22:16 作者:admin