The same page put multiple Baidu editor ueditor with PHP to get the Ueditor value of the instance

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.