[Scatter] is the service code provided for editing small mm. about the picture.

Source: Internet
Author: User
[Scatter] is the service code provided for editing small mm. About the image upload.
We encountered in the work of the following scenario: Edit little sister need to publish the content of the picture, a bit more pictures, a piece of content about 20来 pictures, a day to publish more than 200, with the editor's own image upload a bit inefficient.
Goal: Improve upload efficiency.
Method one. Directly on the word Save as HTML, and then upload the picture in the specified directory, and then put the HTML code in the editor, submitted after the data to fit a bit. This method is better suited for publishing content in Word. Specific examples, not detailed.

Method Two. With Firefox, the editor can support post-paste. Usually directly with QQ, after submission of data for HTML5 pictures, ie does not show, and toss toss to normal HTML IMG, the code is as follows.
PHP Code
  
   Data is submitted in form, array format $data = $_post["Data"; $data = Filter ($data)  ; Convert data///  remaining events, insert databases, generate static stickers and the like ...


PHP Code
  
   Conversion processing function filter ($data) {    if (sizeof ($data))    {        foreach ($data as   $key = $val):            if (preg_ Match_all ("/$val 2):                        list ($newFilePath, $newFileName) = Create_png_name ();                        File_put_contents ($newFilePath, Base64_decode ($val 2));                        $val = Str_replace ("

PS: Recent business affairs, everything is upset, more and more do not focus on the development, time rush, more is to express a kind of work to facilitate the idea, but also want you to criticize.

------Solution--------------------
Oh
Editor Ewebeditor The small series directly to the inside drag the picture to be able
------Solution--------------------
The headline was attractive, so I came in.

Another question is, what business affairs make you upset. Lighten up.
------Solution--------------------
Look at the scattered in, there is a fact is typesetting, the editor's typesetting function is too ugly, I write the words JS is not
------Solution--------------------
discuss

Yes, you have a minute, boss. Integration, what drag chart,, batch upload, album selection, Word upload, the entire focus on the first line of Small edition editor
Reference:

Oh
Editor Ewebeditor The small series directly to the inside drag the picture to be able

------Solution--------------------
For many years no useful eweb, mostly using ckeditor, feel compatibility and functional customization, etc.
It is really a troublesome thing to say that the text is mixed.
------Solution--------------------
Data:image/png;base64
This is good. The collection.
------Solution--------------------
It is tiring to do this line.
------Solution--------------------
How to get points ah! I'll give it a try.
------Solution--------------------
If you save Word as HTML, you should have a lot of redundant code
As a code freak, I can't accept that--
------Solution--------------------
1.MM Beautiful no?
2. Does the landlord fix it?
3. The current popular web editor is Word thinking ..... Someday it will change ...
------Solution--------------------
I'm here to pick up the points, too. ^_^
------Solution--------------------
Baidu that thing picture you paste, he will upload to you well ...
------Solution--------------------
Beginner, research .....
  • 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.