Dedecms: how to enter a tag comma to automatically change the tag to an English Punctuation Mark when publishing an article

Source: Internet
Author: User

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

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.