How does CKeditor edit template files (default source code mode )? You want to use Ckeditor to edit the template html source file
After switching from the text mode to the source code mode, once the text mode is switched back to the source code mode, many
Such redundant characters;
Who knows how to set the default source code mode?
If you have better online template editing methods, please do not hesitate to give me some advice!
Reply to discussion (solution)
You want to use Ckeditor to edit the template html source file
After switching from the text mode to the source code mode, once the text mode is switched back to the source code mode, many
& Nbsp; such redundant characters;
Who knows how to set the default source code mode?
If you have better online template editing methods, please do not hesitate to give me some advice!
This is automatically generated by FCK, which is generally not in the form of HTML source code by default.
Even if you are in the source code editing mode, it will be automatically filtered during submission.
In addition, & indicates &. if not, you should delete this "&" directly. if not, there cannot be spaces between the two words.
This problem has also been encountered recently. after testing, this problem is caused by the nonstandard code during source code editing.
For example , This will happen when the labels that should be written between them are written into the labels.
To solve this problem, you must standardize the code when editing the source code and compile it according to the html specification.
This problem happened.
I used the following method to solve the problem and ask for criticism.
Config. startupMode = 'source ';
Config. toolbar = [];