我正在使用 TinyMCE,我注意到当我从 Google 文档复制/粘贴时,所有粗体都会消失,变成普通文本。
在线转载: https://jsfiddle.net/qg4x6ctL/2/
我的选择:
tinymce.init({
selector: '#content',
placeholder: "Paste here",
contextmenu: 'paste',
plugins: [
'link',
'lists',
],
convert_fonts_to_spans: false,
});
它需要 Powerpaste 插件,这是其高级插件的一部分。
https://www.tiny.cloud/docs/tinymce/6/introduction-to-powerpaste/