CKEditor syntaxhighlighter Code highlighting plugin, perfect fix _ Web editor
Source: Internet
Author: User
CKEditor objects and FCKeditor is not the same, can not directly invoke innerHTML and outerHTML, around a large bend, the current node before the insertion of a new node, and then delete the original node ... It's silly, but it solves the problem.
By the way, add an additional option to the Advanced Configuration page "Do not automatically convert hyperlinks," Syntaxhighlighter default will be the URL in the code into hyperlinks, looks very uncomfortable, now free to set up, hehe
A picture.
How to use:
1. Extract attachment to plugins (sablog2.0 in Include\editor\plugins)
2. Open the Config.js file in the CKEditor directory and add two lines
Config.extraplugins = ' syntaxhighlight ';
Config.toolbar_Full.push ([' Code ']);
3. Open your editor and start inserting the code.
Syntaxhighlight.rar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.