editor.serializer.addNodeFilter('br', function(nodes) {
for (const node of nodes) {
if (node.parent && node.parent.name === 'code') {
- const newline = new tinymce.html.Node.create('#text');
+ const newline = tinymce.html.Node.create('#text');
newline.value = '\n';
node.replace(newline);
}
"-doc-root[doc-root|#text]",
"-li[details]",
"+code-block[pre]",
- "+doc-root[code-block]"
+ "+doc-root[p|h1|h2|h3|h4|h5|h6|blockquote|code-block|div]"
].join(','),
plugins: gatherPlugins(options),
contextmenu: false,
media_alt_source: false,
media_poster: false,
formats,
- table_style_by_css: false,
- table_use_colgroups: false,
+ table_style_by_css: true,
+ table_use_colgroups: true,
file_picker_types: 'file image',
file_picker_callback,
paste_preprocess(plugin, args) {