Changing the tag interval from a space to an English comma makes it inconvenient for webmasters who often use original articles because we always like to use full-width commas when entering Chinese characters, is there a way to use a JS script to convert the input Chinese comma into an English comma? Of course! In this way, you do not need to switch the input method to enter a comma when entering the tag.
The following is the modification method:
Edit and open the/Dede/templets/article_add.htm file and find the following code:
<InputName= "Tags"Type= "Text"ID= "Tags"Value= "<? PHP echo $ tags;?> "Style= "Width: 300px" />
Change
<InputName= "Tags"Type= "Text"ID= "Tags"Value= "<? PHP echo $ tags;?> "Onkeyup= "This. value = This. value. Replace (/,/g ,',');"Style= "Width: 300px" />
In this way, you can. Note: The above only changes the automatic switch of adding tags for new articles with commas (,). If you want to change the tags for editing articles, adding new software, and so on, then you can find the template and modify it according to the above method.
Dedecms: how to enter a tag comma to automatically change the tag to an English Punctuation Mark when publishing an article