Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem of garbled code in picture upload box of dedecms background editor

Shulou Source: shulou.com Published: 2022-06-02 03:56:16 11月17日 Update

This article will explain in detail how to solve the problem of garbled picture upload box in dedecms background editor. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Introduction before encountered the dedecms background picture upload box garbled problem, has found a solution, now share with you.

A problem I encountered some time ago.

The editor in the background of dedecms appears garbled when uploading pictures.

The meaning of the text is incomprehensible.

Dedecms (https://www.sdocos.com/blog/69.html) editor garbled map

We found a way to deal with this problem today.

The processing steps are attached below:

Step one

Enter the background-system-system basic parameters-core settings

As shown in the following figure, fill in the HTML editor as CKeditor, and then make sure to save

Dedecms Editor

Step two

Go to the root directory, find the file / include/uploadsafe.inc.php and put the code at line 45

$imtypes = array

Change it to:

$imgtypes = array

Then save it and generate it in the background.

The editor is ready to use.

On how to solve the dedecms background editor picture upload box garbled problem to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Editor background garbled problem picture step more article system processing good practical code content method parameter meaning file text article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Redmi NVidia vpn