In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the "Ueditor automatic typesetting content is not automatically synchronized to the form how to fix" the relevant knowledge, in the actual case of the operation process, many people will encounter such a dilemma, then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
Ueditor has an automatic typesetting feature, but changes made by the autotypesetting feature cannot be automatically synchronized to the form. When the save button of the form is clicked, the data before automatic typesetting is saved.
Check the documents on the Ueditor official website and find that there is a configuration option for automatic synchronization. However, this option cannot synchronize autotypesetting changes to the form. This may be because the autotypesetting feature modifies the editor data through js and does not trigger an automatic synchronization event. It should be regarded as a bug of Ueditor. It is a pity that Ueditor has already stopped updating, which is another sad thing for domestic open source projects.
We can only find a way to fix this problem. It is obviously too much trouble to modify the ueditor source code directly. A good solution is to call ueditor's synchronization method sync () before the form is submitted to synchronize the changes in the editor to the form.
In jspxcms, add the following code at line 22 of the modification WEB-INF/views/core/info/info_form.jsp:
/ / fixed that ueditor does not automatically synchronize if (ueditor_text) ueditor_text.sync ()
The modified code is as follows:
The content of "Ueditor automatic typesetting content is not automatically synchronized to the form how to fix" is introduced here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.