如何在与文本颜色不同的突出显示部分自定义颜色?

问题描述

Image to the issue

如何为与文本颜色不同的高亮显示自定义颜色。

解决方法

documentation 表示 color_map 设置会同时设置它们。

另外查看源代码,您可以确认目前这是不可能的,因为两个色板都从相同的函数中获取颜色。

https://github.com/tinymce/tinymce/blob/develop/modules/tinymce/src/themes/silver/main/ts/ui/core/color/ColorSwatch.ts#L135