CKEditor How to edit template files (default source mode editing)?

Source: Internet
Author: User
Want to edit the template HTML source file with CKEditor
After switching from text mode to source mode editing, once the text mode is cut back to the source mode, there will be a lot like

Such an extra character;
I do not know which expert knows how to set the default source code mode?
If you have a better template online editing method also please enlighten!


Reply to discussion (solution)

Want to edit the template HTML source file with CKEditor
After switching from text mode to source mode editing, once the text mode is cut back to the source mode, there will be a lot like

  such extra characters;
I do not know which expert knows how to set the default source code mode?
If you have a better template online editing method also please enlighten!

This is FCK automatically generated, is generally not the default HTML source form.
Even if you are the source code editing mode, you will automatically filter when you submit.
In addition & is to express &, if you should not directly delete this "&", if not ", there can be no space between two characters."

Recently also encountered this problem, after testing this situation is due to the source code editing, the codes are not standardized caused by
For example , the labels that should be written in between should be written in the label, which will cause this situation
In order to solve this problem, we must require the code of source editing, and write according to the specification of HTML.

And that's exactly what happened.
I solved it in the following way, and I asked for criticism.
Config.startupmode = ' source ';
Config.toolbar =[];

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.