How to solve the problem of extra spaces when editing in the Chrome browser in the fckeditor editor

Insert image description here

View column directory

The Network Gray Pigeon Collection column mainly focuses on server configuration, front-end and back-end development environment configuration, editor configuration, network service configuration, application and configuration of network commands, solutions to common Windows problems, etc.

Article directory


The backend of the dedecms website uses the fckeditor editor. When using the Google Chrome browser to re-edit an article, there will be a lot of spaces below, which affects the editing efficiency. When uploading data, I found that there will be a space in front of the content. When previewing the article in the front-end of the website There is an extra space in front, which affects the appearance.

Insert image description here

The above is the solution:
First find the file:fckeditor/editor/js/fckeditorcode_gecko.js (the file is usually under the editor folder)
Then find the code: A=E[1]+' '+F[1];
Modify the code to: A=E[1]+''+F[1]; or A=E[1]+F[1];< /span> This situation occurs mainly because different browsers have different recognition of spaces when fckeditor editor loads js
After modification, clear the browser cache and refresh, and the problem will be solved.

Conclusion

Network Gray Pigeon Guide protects the development configuration and makes the service run quickly and smoothly. I hope that a certain knowledge point can help you. Friends who are studying GIS are welcome to communicate with you.
《Openlayers Comprehensive Examples 200+》,
《Leaflet Example Tutorial 100+》,
《Cesium Example Tutorial 100+》,
《MapboxGL Example Tutorial 100+》.

network dream

This is a story about a pigeon named Ah Hui. Ah Hui lives in a busy city and has a dream to connect people all over the world through the Internet.
Ah Hui’s dream began with the story of a carrier pigeon he saw. During the war, that homing pigeon braved hardships and delivered important messages to the soldiers on the front line. Ah Hui was deeply moved by this story, and he decided to become a messenger to deliver information.
Ah Hui began to learn how to use the Internet. He learned how to use email, social media and Internet telephony. He discovered that the power of the Internet is huge. It allows people to share and obtain information across geographical distances, and even establish deep friendships.
Ah Hui began to look for other pigeons in the city and teach them how to use the Internet. He told them that although the Internet may seem complex, anyone can master it if they are willing to learn. Ah Hui also told them that the Internet can not only be used for entertainment and communication, but also for transmitting important information.
Ah Hui’s actions attracted people’s attention. They began to focus on this special pigeon and how he changed the lives of other animals. People began to help Ah Hui by providing him with better equipment and a more stable network connection.
As time went by, Ah Hui’s network team continued to expand, and they began to establish a special network community in the city. Members of this community are not only pigeons, but also other animals and humans. By sharing information, helping each other, and learning new skills, they make the entire community more prosperous and vibrant.
Ah Hui’s story spread throughout the world. His exploits inspired other animals and humans to take to the web. They began to realize that the Internet is not only a tool, but also a force that connects the world and creates a better future.
Finally, Ah Hui realized his dream. He connects people around the world through the Internet, allowing them to better understand and respect each other. Ah Hui’s story tells us that as long as we have dreams and courage, any animal can transcend its own boundaries and bring positive impact to the world.

Guess you like

Origin blog.csdn.net/cuclife/article/details/134978798