TinyMCE SYNTAXHL How to change lines after inserting code _ Web page Editor

Source: Internet
Author: User
Add a newline after the pre before you can go back to the visual interface and continue editing the blog. If you have a lot of code snippets to insert in your blog, you'll be very unhappy. So I made a small change to it today.

Open Plugins\syntaxhl\js\dialog.js

Navigate to Line 41, find </pre> tag. This is the end mark of the Preformatted label. So just insert a paragraph mark behind it and let the cursor jump out of the code snippet we inserted.
The author of the plugin added a bug comment after line 41, so I was afraid to write in the back of the </pre>, so we changed the line and put <p></p> stitching on it.

Now that we've inserted the code, the cursor won't be stuck in the pre. ~oh yeah!

There is a picture of the truth:

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.