wangEditor2 扩展(二)文字颜色自定义

1、找到  // forecolor 菜单

 

 

$content.append(
		    [
		        '<a href="#" class="color-item" title="ec610c" commandValue="ec610c" style="color: #ec610c"><i class="wangeditor-menu-img-pencil" style="width: 18px;height: 18px;display: block;background:#ec610c;"></i></a>',
				'<a href="#" class="color-item" title="ffffff" commandValue="ffffff" style="color: #ffffff"><i class="wangeditor-menu-img-pencil" style="width: 18px;height: 18px;display: block;background:#ffffff;"></i></a>',
				'<a href="#" class="color-item" title="8a8a8a" commandValue="8a8a8a" style="color: #8a8a8a"><i class="wangeditor-menu-img-pencil" style="width: 18px;height: 18px;display: block;background:#8a8a8a;"></i></a>',
				'<a href="#" class="color-item" title="535353" commandValue="535353" style="color: #535353"><i class="wangeditor-menu-img-pencil" style="width: 18px;height: 18px;display: block;background:#535353;"></i></a>'
		    ].join('')
		);

3、还可以调整这里

 

 

 

posted @ 2019-10-11 10:49  漫天风沙  阅读(2090)  评论(0编辑  收藏  举报