Editing markdown with the data-cms-edit attribute is deprecated.
The data-cms-edit attribute has been deprecated since October 2025. CloudCannon continues to maintain it and fix critical bugs, but it receives no new features or further development. Existing Sites relying on this configuration will keep working. For new Sites, we recommend Editable Regions.
You can edit markdown files in the Visual Editor using an in-place Rich Text editor embedded on your page.
To do so, add the data-cms-edit="content" attribute to the relevant element on your site. For example:
<div data-cms-edit="content">
{{ content }}
</div>When encountering this attribute, CloudCannon will replace the children of the tagged element with the Content Editor, connected to the Markdown content of the opened file.