Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
应用样式(粗体、斜体等)后,按 Enter 会创建一个新行,并且样式已被删除。如何防止这种情况并将样式延续到新行?
您必须在 Jodit 配置中设置enter密钥。br
enter
br
const editor = new Jodit('#element', { enter: 'br' })
希望有帮助!
参考: https ://xdsoft.net/jodit/doc/options/enter/