How do I put multiple ueditor on the same page?
The reference code is as follows:
<form method= "POST" action= "save.php" >
<script type= "Text/plain" id= "Ueditorid_1" name= "Ueditorname_1" style= "width:400px;height:500px"; The default value of the > Editor _1</script>
<script type= "Text/javascript" >
Ue.geteditor (' ueditorid_1 ');
</script>
<script type= "Text/plain" id= "Ueditorid_2" name= "ueditorname_2" style= "width:450px;height:550px"; The default value of the > Editor _2</script>
<script type= "Text/javascript" >
Ue.geteditor (' ueditorid_2 ');
</script>
</form>
This will render 2 ueditor editors in the page.
How does PHP get multiple ueditor values?
Note that the above ueditorname_1,ueditorname_2 is the name value of the form, so the server-side PHP Gets the value of the Ueditor editor to be very simple, as the reference code reads as follows:
$_post["Ueditorname_1"]; The value of the first editor
$_post["Ueditorname_2"]; The value of the second editor
solve Baidu ueditor v1.4.3 editor upload picture distortion bug?
Project, using the Baidu Ueditor editor, found that upload a larger picture, the picture will be distorted, just start to think that PHP is the end of the picture compression, look at the configuration instructions, found that the editor with an automatic compression of the image function, hateful is, the compression of the picture Distortion!
Decided to remove this compression function, if you have to compress, then to the service side of PHP to deal with it!
Find configuration file: Ueditor/php/config.json
Set the imagecompressenable to False!
"Summary" has 2 more important profiles:
Ueditor/ueditor.config.js
Ueditor/php/config.json