How does JavaScript modify dedecms to remove width width and height height parameters
This article mainly introduces "JavaScript how to modify dedecms to remove width width and height height parameters" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "JavaScript how to modify dedecms to remove width width and height height parameters" article can help you solve the problem.
FCK compiler correspondence correction:
1. Document contents
Include/FCKeditor/editor/dialog/
2. Correct the corresponding PHP file
Dede_image.php
3. Fix the code
Can be at 127 lines:
Original code:
If ($cfg_multi_site=='N') {$imgHtml. = "
\ r\ n ";} else {if (empty ($cfg_basehost)) $cfg_basehost = 'http://'.$_SERVER["HTTP_HOST"]; $imgHtml. ="
\ r\ n ";}
Modified to:
If ($cfg_multi_site=='N') {$imgHtml. = "
\ r\ n ";} else {if (empty ($cfg_basehost)) $cfg_basehost = 'http://'.$_SERVER["HTTP_HOST"]; $imgHtml. ="
\ r\ n ";}
In practice, remove the copy code: "width=\" $imgwidthValue\ "and height=\" $imgheightValue\ ".
This is the end of the content about "how JavaScript modifies dedecms to remove width width and height height parameters". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.