


How to automatically replace Chinese commas with English commas in DreamWeaver
How to automatically replace Chinese commas in Dreamweaver with English commas?
When DEDECMS publishes documents and enters tags, Chinese commas are automatically replaced with English commas
Recommended learning: Dreamcms
Starting from version 5.3 of DedeCms, the spacer of the TAG tag has been changed from a space to an English comma. This makes it very inconvenient for webmaster friends who often create original articles, because we are Chinese and we like to use Chinese when entering Chinese characters. comma, is there any way to automatically change the comma when entering a tag into an English comma? Finally I found a method, and now I share it with you. The method is as follows:
The following is the modification method for DEDE5.5 and 5.6:
Open dede/templets/article_add .htm file, and then look for the following code:
<input name="tags" type="text" id="tags" value="" style="width:300px" />
and change it to:
<input name="tags" type="text" id="tags" value="" onkeyup="this.value=this.value.replace(/,/g, ','); " style="width:300px" />
This way, it’s fine. Note that the above only changes the automatic comma switching of tags for adding new articles. If you want to change the tags for editing articles, adding new software, etc., then find the corresponding template and modify it as mentioned above.
The following is the modification method for DEDE5.7:
Open the dede/templets/article_add.htm file, and then find the following code:
<input name="tags" type="text" id="tags" value="" style="width:300px" onChange="$Obj('keywords').value=this.value;" />
Modify For:
<input name="tags" type="text" id="tags" value="" style="width:300px" onkeyup="this.value=this.value.replace(/,/g, ','); $Obj('keywords').value=this.value;" />
I have personally tested the above code and it is correct, please feel free to use it!
The above is the detailed content of How to automatically replace Chinese commas with English commas in DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1
Powerful PHP integrated development environment

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool