惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
U
Unit 42
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
IT之家
IT之家
MyScale Blog
MyScale Blog
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
InfoQ
博客园 - 司徒正美

CloudCannon Blog

Building with AI: Git-based vs headless vs traditional CMS CloudCannon + Astro: performance meets powerful content management Introducing the Astro Component Starter Introducing Jetstream — built on the Astro Component Starter Why we switched to the system font stack Redesigning CloudCannon’s docs with Diátaxis, Lume, and Pagefind Make content editing more visual: upgraded Editable Regions How Configuration Mode makes building editing interfaces easy Your hosting just got an upgrade (and a price cut) Custom testing domains for professional branding Keep your content consistent with input validation Managing multilingual content in CloudCannon Simplify team publishing with conflict resolution and domain tools Open Beta: Publishing Conflict Resolution Getting started with CloudCannon and Astro: Bookshop, components, and live editing Welcome to the CloudCannon Community! Omnichannel delivery is just marketing spin from API-based CMS companies Getting started with CloudCannon and Astro: Snippets and Collections Managing digital assets in CloudCannon: a guide to smart asset storage Understanding CloudCannon's branching workflows and Projects: a complete guide What is a static website? CloudCannon’s 2024 wrapped Getting started with CloudCannon and Astro: WYSIWYG blogging Jamstack vs. WordPress: reasons to make the change The top five static site generators for 2025 (and when to use them!) Free Jekyll themes for 2025: ten great community options Eleventy (11ty) vs. Hugo How to set up WYSIWYG editing with MkDocs Material The rise of static-first websites: why major brands are making the switch Watching your Core Web Vitals on Jamstack
How you can optimize your Content Editor for long-form ar...
2024-07-05 · via CloudCannon Blog

While I love visual editing for building out new landing pages, and tweaking my layouts and microcopy, I also do quite a lot of long-form writing in the form of blog posts or longer articles. That's when I turn to CloudCannon's Content Editor, for its distraction-free writing environment.

With the Content Editor I'm able to focus more on how I'm constructing an argument or expressing an opinion, and how one section of prose flows neatly into the next. This kind of approach can be especially valuable for long-form content where maintaining narrative structure is crucial.

Screenshot of CloudCannon's Content Editor

Working in the Content Editor, pictured above, is designed to be intuitive, and the options available are chosen to mimic those of familiar word processing software. I’m able to start writing immediately without needing to remember any special commands or syntax. This is particularly beneficial for writers who may not have technical backgrounds, or for those who prefer to focus solely on their content.

In the Content Editor, all of your formatting options are shown by easily recognizable icons or menu items. For example:

  • Bolding text involves clicking the 'B' icon. Easy!
  • Creating a heading is as simple as selecting text and choosing a heading level from a dropdown formatting menu.
  • Inserting links, images, or tables can be done by clicking on a menu item and adding further details in popup dialog boxes. This simplicity allows writers to apply complex formatting without using specific code or tags.

The Content Editor is more than a blank page with a one-size-fits-all toolbar — your tools can be configured to match the way you write. You and your developer can customize your toolbar by adding the features that you need, and removing those you don’t.

There are lots of options to choose from! To make it easier to think about what you might need, I’ve separated them into several broad groups:

Text options Direct link to this section

Text option buttons in CloudCannon

Text options are applied to selected regions of your text — you’d use these to make a word bold or italic, for example, or to format a whole paragraph.

Style and alignment options Direct link to this section

Styles and alignment option buttons in CloudCannon

With these options you can align or justify selected blocks of text, or apply custom formatting styles that you and your developer have defined.

List options Direct link to this section

List option buttons in CloudCannon

List options allow you to place items in bulleted or numbered lists, shift items within lists, and indent or outdent list items.

Block options Direct link to this section

Block option buttons in CloudCannon

Block options enable you to add media and full-width content elements like images, tables, custom embeds, and horizontal rules.

Action options Direct link to this section

Action option buttons in CloudCannon

Action options include undo and redo, as well as the ability to remove or copy formatting. (For those of us with muscle memory for CTRL-Z or Command-Z, it’s a relief to know that undo and redo are technically always enabled, but you can choose if you’d also like to see a specific button for these functions.)

Image options Direct link to this section

If you enable images, you can add further options here, including image size attributes, preset image width or height values, and define any approved sources for your images. (You might, for example, set a rule that images can only be sourced from a specific digital asset manager.)

Your developer can also customize paths for your site’s assets (including file name rules), and can choose to allow or remove custom markup within the Content Editor.

Snippets Direct link to this section

If you’d like to further extend the functionality of the pages you’re writing in the Content Editor, you and your developer can choose to add Snippets to your block options. Snippets can perform many functions within your page, including adding image galleries to adding custom page anchors, embedding YouTube videos or Spotify podcasts in blog posts, or showing or hiding conditional content. You can think of them as a pre-defined page element to complement your content.

Here’s a Spotify embed I’ve added to this blog post, with a simple Snippet:

Our own documentation team uses Snippets to bring a huge range of features to the articles and guides they write using the Content Editor, including customized code blocks with responsive annotations; and conditional content, which is either shown or hidden depending on the SSG a user has chosen.

You can even make Snippets from existing web components. (We did this with Zach Leatherman's <table-saw> web component for a responsive table element — find out how in Zach's article, and see his GitHub repo for the component itself!)

Once they’re set up, Snippets can be added to your content directly from the Content Editor, without users needing to touch any code. You can just click once to add a Snippet to your page, then define the Snippet’s parameters (for example, the unique section of a YouTube URL and the video's title).

Here’s how it looks from the editor’s perspective:

Importing Snippets, Shortcodes and Components Direct link to this section

Your Snippets don’t have to be completely customized — if you’d like to bring in an existing library of Snippets from a static site generator (SSG) library, you can do that too. Other Snippet templates, like MDX components, can be used for a variety of SSGs.

Snippet templates require little configuration to use effectively. CloudCannon supports the following Snippet templates:

Configuring custom Snippets can be more complicated than using Snippet templates, but they do provide more flexibility. Just for fun, here are a few additional tasks that custom Snippets could achieve for you:

  • Time-delaying sections of content that only appear after a given time and date
  • Including an email or newsletter signup CTA in a blog post
  • Triggering animations when the snippet is scrolled past
  • Embedding cards to auto-discovered related pages
  • Collating inline citations, and enforcing a specifically styled output (e.g. APA, MLA, Chicago)
  • Including an inline Pagefind search form with hardcoded filters relevant to content on the page

If you’d like some help setting up Snippet templates, or creating custom Snippets to achieve a particular goal for your site, our solutions specialists are happy to lend a hand — just reach out!