How to insert images, videos, and code blocks in the content editor to enrich the display?

Calendar 👁️ 68

In today's content-driven era, a great article is not just a pile of words, but needs to be illustrated with pictures and graphics, combined with dynamic elements, and even clearly presented with code, in order to better attract readers' attention and convey effective information.The Anqi CMS is well aware of this, therefore it has integrated a variety of practical functions into the content editor, allowing content creators to easily insert images, videos, and code blocks, making the content display more rich and vivid.

Next, we will delve into how to skillfully use these tools in the Anqi CMS content editor to bring new vitality to your articles.

Insert beautiful images to enhance visual appeal

Pictures are the soul window of articles, they can directly express information, break the boredom of long texts, and effectively guide the reader's vision.Inserting images in the AnQi CMS content editor is very convenient.

When you enter the "Content Management" "Publish Document" interface or edit content in the "Page Resources" "Page Management", you will see a feature-rich visual editor.On the toolbar of the editor, you will find an intuitive 'image insert' icon (usually a mountain or sun pattern).Click this icon, the system will pop up a window for you to choose whether to upload a new image or select from the existing image resource library.

If you choose to upload a new image, you can directly select a file from your local device.It is worth mentioning that AnQi CMS has done a lot of optimization work in image processing.After uploading, the system will automatically process the image based on the global settings on the backend, such as intelligently compressing large images to reduce file size, converting them to a WebP format more suitable for web browsing, or generating thumbnail images of different sizes according to presets.These automated processes can ensure that images load quickly on the front-end page without slowing down the website speed, while also ensuring the display quality of the images.If the content contains external image links, the system can also intelligently download them to the local and manage them, which is very convenient for unifying content resources.In addition, you can also use the built-in watermark feature of the system to add a unique identifier to the image, effectively protecting the original content.

It is more convenient to select an existing image, you can directly choose from the previously uploaded image library, quickly find the required image through classification, search, and other methods, and insert it into any position in the article.

Embed exciting videos, enrich content interaction

The charm of video lies in its dynamics and information carrying capacity, a well-made video often conveys complex concepts more efficiently than text and can greatly enhance the user's stay time on the page.The AnQi CMS content editor also supports easy video insertion features.

In the toolbar of the editor, you will find a 'video insert' icon (usually in the shape of a play button).Click it, a text box will pop up. You can choose to directly paste the sharing link of mainstream video platforms (such as YouTube, Bilibili, etc.).The editor will intelligently recognize links and automatically generate embedded codes, presenting the video directly in the article.For locally stored video files, you can also insert them by uploading.

It should be noted that although the system supports local video uploads, for the sake of ensuring the website's access speed and user experience, especially when the video file is large, it is usually recommended to host the video on professional video platforms.These platforms have strong bandwidth and distribution capabilities, which can ensure smooth video playback and also effectively reduce the load on your server.By simply embedding a link, your content can easily combine text, images, and audio-visual elements, greatly enhancing interactivity and attractiveness.

Insert code blocks, clearly display technical content

For technical articles, tutorials, or content that requires displaying specific code examples, clear and beautiful code blocks are indispensable.The Anqi CMS content editor provides a dedicated 'code insertion' feature to ensure that code is presented in a professional and readable manner.

In the editor toolbar, you will find a 'code insertion' icon (usually</>The symbol). Click it, and a code input box will pop up, and it usually provides options to choose programming languages.Here, you can choose from various languages such as C++, Java, Python, JavaScript, and more.Select the correct language and paste your code, the editor will automatically highlight its syntax.Syntax highlighting allows different types of code elements (such as keywords, variables, strings, etc.) to be displayed in different colors, greatly enhancing the readability of the code.

If you are accustomed to using a Markdown editor, Anqi CMS also supports it perfectly.You can enable the Markdown editor in the background under "Global Settings" -> "Content Settings".Enable this and the code block will be wrapped in triple backticks (), followed by the language specification, for example\``javascript`, same can achieve syntax highlighting.Further, for some specific scenarios, such as displaying mathematical formulas or flowcharts, with the Markdown editor enabled, by introducing the corresponding third-party front-end plugins (such as MathJax and Mermaid), you can even directly write and render complex mathematical formulas and dynamic flowcharts in Markdown, making your technical content more professional and intuitive.

Summary: Make the content more attractive

The Anqi CMS content editor is not only powerful but also designed with the convenience of users in mind.Whether it is inserting images, embedding videos, or adding code blocks, it provides an intuitive and easy-to-use interface and intelligent background processing to help you easily create high-quality, multimedia, and well-structured content.Fully utilize these features, making your website content more attractive and better serving your readers and business goals.


Frequently Asked Questions (FAQ)

1. Why doesn't the front page show the latest image I uploaded, or is the image displayed unclear?

This is usually caused by browser cache. You can try clearing the browser cache or force refresh the page (on Windows system usually press Ctrl+F5, on macOS system press Cmd+Shift+R).If the image is not clear, it may be because the "Auto-compress large images" feature is enabled in the "Content Settings" of the background, and the compression width is set too low.You can adjust the compression width or turn off this feature and use 'Batch regenerate thumbnails' to update the images.

2. After embedding a video in the article, I found that the page loading speed has slowed down. What methods can be used to solve this?

Locally uploaded large video files may indeed affect page loading speed.Suggest you upload the video to a professional third-party video platform (such as Bilibili, YouTube, etc.), and then paste the sharing link of the video into the content editor of AnQi CMS, and display it through the embedded way.This can take advantage of the powerful distribution capabilities and bandwidth of the video platform, effectively reducing the load on your server, thereby significantly improving page loading speed and video playback smoothness.

3. How did I insert a code block, but the code is not highlighted, what's the matter?

Please check if you have selected the correct programming language when inserting a code block.Code highlighting usually requires specifying the language type. If you are using a Markdown editor, please confirm that the Markdown editor has been enabled in the "Global Settings" -> "Content Settings" of the Anqi CMS backend.For more advanced Markdown rendering such as mathematical formulas and flowcharts, it is necessary to ensure that the corresponding JavaScript libraries (such as MathJax and Mermaid) are correctly included in your front-end template.

Related articles

How can AnQi CMS automatically generate article summaries to optimize list content display?

In website operation, how to make the content list page attractive to user clicks and help search engines better understand the page content is a topic that needs continuous optimization.Among them, the quality of the display of the article summary plays a key role.AnQiCMS provides an efficient solution in content management, especially in the automatic generation and optimization display of article summaries, which provides great convenience for content operators.Why is the article summary crucial in the display of content lists?Imagine when a user visits a website's blog or product list page

2025-11-08

How to automatically extract keywords from the article content for SEO display?

In today's highly competitive online environment, content operators are well aware of the importance of keywords for website SEO.They are not only the bridge for search engines to understand the content of your website, but also the entry point for users to find your information.However, manually screening and extracting keywords from each article is undoubtedly a time-consuming and labor-intensive task.Is there a more intelligent and automated way to handle this problem?AnQiCMS (AnQiCMS) deeply understands the pain points of content operators, integrating SEO optimization deeply into the system design.It provides a series of powerful SEO tools

2025-11-08

How to add recommended attributes to articles, products, and display them in front-end categories?

In content operation, how to effectively highlight important information so that users can find the core content at a glance, which is the key to improving the website effect.AnQiCMS (AnQiCMS) provides a flexible recommendation feature that allows you to easily mark the importance of articles, products, or other content and display them on the website front-end as needed.This article will introduce in detail how to add these recommended attributes to the content in the background, as well as how to classify them in the front-end template.--- ## Use Anq CMS recommended attributes to make your content shine on the front page In content management and presentation

2025-11-08

How to configure pseudo-static rules to achieve diverse content link display modes?

As website operators, we all hope that the website's URL can be easily indexed by search engines and be clear to users, even allowing them to understand the content of the page directly from the link.A clear and meaningful URL not only enhances user experience but is also an indispensable part of search engine optimization (SEO).Aqin CMS understands this and therefore provides a powerful and flexible static rule configuration function, allowing us to create diverse content link display modes according to our needs.Why is pseudo-static so important?\n\nImagine two types of links: `www.yourdomain

2025-11-08

How to specify the content model for a specific category and affect the display of its documents?

AnQiCMS provides excellent flexibility in content management, with the core being the tight integration of content models and categories.Understanding how to specify the content model for a particular category and thereby influence the display of its documents is the key to the efficient operation of a website.This not only helps organize your website content neatly, but also makes the front-end display more diverse, meeting different business needs.### Understanding the relationship between content models and categories First, let's clarify the concepts of 'content model' and 'category' in AnQiCMS

2025-11-08

How to display recommended attributes of documents (such as headlines, sliders) on the website front-end?

In content operation, highlighting important or recommended content in an eye-catching way is the key to improving user experience and the efficiency of content reach.AnQiCMS (AnQiCMS) offers a powerful 'recommendation attribute' feature that allows you to easily mark and manage different types of featured content, such as setting it as a headline article, slideshow display, or other specific recommendations.This article will introduce how to effectively present these recommended attributes of documents on the front page of Anqi CMS website.--- ### One, understand the recommended document properties of Anqi CMS First

2025-11-08

How to batch update content in the background to quickly adjust the display results of the website?

With the explosive growth of internet content, the management and update efficiency of website content has become a key to operational success.For websites with strong dynamics and large content volume, manual editing line by line is not only time-consuming and labor-intensive, but may also affect the overall performance of the website due to operational errors.AnQiCMS (AnQiCMS) understands the challenges faced by operators, providing a powerful batch update feature that makes the quick adjustment and display optimization of website content more efficient than ever.### One, Core Tool: Full Station Content Replacement and Keyword Management When the website brand name changes, product links are updated

2025-11-08

How to use the anti-crawling feature to protect the display integrity of original content?

In the era of the explosion of digital content, the value of original content is increasingly prominent.For website operators who have invested a lot of effort in creating websites, how to effectively protect the display integrity of these original contents and avoid malicious collection and plagiarism has become an important issue.AnQiCMS (AnQiCMS) is an efficient and secure website building tool that is built with powerful anti-crawling functions, helping us better maintain the originality of our content.Why Original Content Protection is Crucial?Original content is the core asset of a website, it is not only the key to attracting users and enhancing brand influence

2025-11-08