CKEditor 添加更多符号
如何在“插入特殊字符”面板中添加更多“自定义”符号?
谢谢。
How can I add more "custom" symbols in the Insert Special Character panel please?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
请注意,这也可以在配置文件中完成:
http:// docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-specialChars
Note this can be done in the config file as well:
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-specialChars
在你的配置文件中 => config.js
CKeditor 文档:http: //docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-specialChars
如果要添加特殊字符(例如希腊语):
In your config file => config.js
CKeditor Documentation: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-specialChars
If you want to add special characters (Greek for example):
添加自定义符号实际上非常简单。在 ckeditor 文件夹中转到该文件:
您将在文件中间看到一个大代码块,其中包含大量实体代码,最后一个是
≈
- 在该代码之后,添加任何您想要的新内容以逗号分隔并用单引号括起来。 ,'新','新'。我希望这有帮助!
Adding custom symbols is actually pretty easy. Within the ckeditor folder go to the file:
You'll see a large code block halfway through the file containing a ton of entity codes, the last one is
≈
- after that one, add any new ones you want separated by commas and surrounded in single quotes. ,'new','new'.I hope that helps!
打开您的 config.js 文件,
如果您想插入男性(♂)符号,请在配置文件中使用以下代码,
如果您想插入带有自定义标签的男性符号,
Open up your config.js file,
If you want to insert male(♂) symbol use the below code in the config file,
If you want to insert male symbol with custom label,
我安装了 CKeditor 4,就我而言,我必须转到 root > >资产>后端> ckeditor > ckeditor.js
代码如下所示
然后我添加了这个补丁
它有效
I have a CKeditor 4 installed, in my case I had to go to root > assets > backend > ckeditor > ckeditor.js
The code looks like this
I then added this patch
and it works