


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!

织梦导入css的方法:1、将HTML模板文件放到“templets”文件夹中;2、将HTML文件的后缀改成“.htm”;3、在原先的样式路径前加上“{dede:global.cfg_templets_skin/}”即可。

数据库是网站运行的核心,存储着用户数据、文章内容等重要信息,因此在网站运营过程中,数据库文件的备份和恢复显得尤为重要。对于使用织梦CMS搭建的网站来说,数据库文件的恢复同样是一项关键任务。本文将详细介绍织梦CMS数据库文件的恢复方法,并提供具体的代码示例,帮助用户迅速恢复网站数据,保障网站正常运行。一、备份数据库文件在恢复数据库文件之前,首先需要确保已经进行

织梦是一个非常著名的CMS,由于其简单易用的特点被许多网站使用,它的后台采用php进行开发,而最新的官方版本是织梦php 5.7。在本文中,我们将探讨织梦php5.7版本的新特性和优势。

织梦是一款非常流行的网站建设系统,其架构是基于PHP语言构建的。因此,织梦需要PHP来运行。那么,具体来讲,织梦需要多少个PHP呢?这并不是一个简单的问题。本文将会从以下几个方面介绍织梦需要的PHP版本和组件数量。

安装织梦时遇到问题是一个常见的情况,其中一个可能的问题就是无法成功安装php7.0。在本文中,我们将介绍如何解决这个问题。

织梦需要PHP 5.2版本及以上,其安装方法:1、首先安装PHP并配置好环境;2、下载DedeCMS安装包,并解压到网站根目录;3、打开网站URL,按照提示完成安装;4、安装完成后,通过http://localhost/yourwebsite访问即可访问到织梦后台。

cms不是织梦,cms是指内容管理系统,而织梦只是cms的一种;织梦cms就是指织梦内容管理系统,而内容管理系统是一种位于WEB前端和后端办公系统或流程之间的软件系统;cms具有许多基于模板的优秀设计,可以加快网站开发的速度和减少开发的成本。

织梦CMS是一款基于PHP5开发的开源内容管理系统,被广泛应用于网站建设领域。掌握织梦PHP5的关键要点,对于开发者来说非常重要。本文将介绍一些关键要点,并提供具体的代码示例,帮助读者更好地理解和应用织梦PHP5。一、文件包含在织梦CMS的开发中,经常需要在不同的文件之间进行数据共享和代码重用。PHP的文件包含功能是解决这个问题的有效方法。在织梦CMS中,常


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
