Editor

ZANACMS has two page editors: Rich and MD. They look similar, but the main text field works differently.

In MD mode, you edit plain Markdown text. The page output is generated from that Markdown text.

In Rich mode, you edit formatted content. The source button switches between visual editing and HTML source editing. You can continue working in source view and switch back afterwards.

Settings and front matter

In MD and Rich mode, page metadata is shown as setting (although in MD mode the data is stored as frontmatter at the beginning of the *.md file).

lang: defines the page language, for example de, en, es, fr, pt, ru or zh.

page-id: defines the page id. It is shown for new pages. Use lowercase letters, digits, hyphen and underscore.

Editor buttons

Many editor buttons work at the current cursor position, for example inserting images or links. Place the cursor first, then use the button.

Undo and redo are handled by the browser or text field, for example with Ctrl+Z and Ctrl+Y.

Text classes

The class select can apply a prepared text class or remove the selected prepared class with the remove option. Site owners can replace the visible class list through /__config/customadmin.php.

In Rich mode, ZANACMS still cleans pasted HTML. It keeps built-in ZANACMS classes, configured editor classes, alignment classes and classes beginning with zp. Other pasted classes are removed.

Images

When you upload an image from the editor, ZANACMS resizes it in the browser before uploading it. It also creates a smaller copy for normal page display.

Settings

The Settings admin tool uses the same editor style for the global {{ZCOL2}} content. It has language tabs in one form. The settings page does not store a page title or a page H1, and H1 is not supported there.

In PHP mode, the settings page uses the Rich editor.

Saving

There is no autosave. Changes are applied only when you press the save button.


ZANACMS – Lightweight PHP CMS, no database, multilingual.