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、还可以调整这里

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM