From 32d372fe9a7ce045697e30ec670f4a5229b72989 Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 31 Dec 2025 14:58:24 +0800 Subject: [PATCH] * [feedback #11055] update default value of preferHardBreak to true in editor class. --- lib/zin/wg/editor/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/wg/editor/v1.php b/lib/zin/wg/editor/v1.php index 910bd0b23e..39a435234c 100644 --- a/lib/zin/wg/editor/v1.php +++ b/lib/zin/wg/editor/v1.php @@ -24,7 +24,7 @@ class editor extends wg 'locale?: string', // 语言,可选值 'zh', 'en',默认跟随浏览器,也可以是自定义的语言项 JSON,详见 ZenEditor 文档 'markdown?: bool=false', // 是否启用 Markdown 模式,若启用,为了兼容性将会隐藏一些功能 'neglectDefaultTextStyle?: bool=false', // 是否不赋予默认的文本样式 - 'preferHardBreak?: bool=false', // 是否优先使用硬回车而不是新段落 + 'preferHardBreak?: bool=true', // 是否优先使用硬回车而不是新段落 'value?: string', // 初始内容 'templateType?: string', // 模板类型 'uid?: string' // 图片上传 uid