javascript - 将文本颜色图标颜色更改为选定颜色 Froala Editor
问题描述
在FroalaEditor
中,我正在尝试创建一个使用内联工具栏更改文本颜色的选项。
这是我到目前为止所做的示例:https ://jsfiddle.net/moviecrew/ph7au4v5/
new FroalaEditor('div#froala-editor', {
toolbarInline: true,
charCounterCount: false,
toolbarVisibleWithoutSelection: true,
toolbarButtons: ['insertLink', 'color', 'bold', 'italic', 'underline', 'strikeThrough',
'subscript', 'superscript', 'fontFamily', 'fontSize', 'textColor', 'backgroundColor',
'inlineClass', 'inlineStyle', 'clearFormatting']
});
选择颜色后,我想更改此图标的颜色,以反映所选文本的所选颜色。
我检查了文档,但没有与之相关的事件。
我们能做些什么来完成这项工作吗?
它实际上应该看起来像这样https://tppr.me/MFxzb
谢谢
解决方案
推荐阅读
- python - 我正在尝试创建一个使用文本文件并计算分数的测验程序。但是分数不起作用
- amazon-cognito - 用于访问 Web 应用程序的 AWS 身份池
- javascript - 如何从 formData 图像中知道图像的大小(以像素为单位)?
- c++ - 如何使用 C++ 向 mysql master 发送命令(如 COM_REGISTER_SLAVE 或 COM_BINLOG_DUMP)?
- ios - 如何在 Alamofire 中实现 POST 方法编码参数请求?
- android - Android MP4parser 问题:android java.lang.IndexOutOfBoundsException:没有这样的设备
- angular - 单击垫子按钮时如何更改背景颜色 - Angular?
- r - R中PMG分析中的不平衡面板错误
- sql - 连接两张表,保留第一张表SQL的完整结构
- airflow - Apache Scheduler 无法正常工作 - 即使在重新启动网络服务器后