Editor

keymaps

Visit here and here for keymaps available by default.

Want to add your own keymaps?
Try creating your own plugin!

mathjax

Type

1$$
2a + b = c
3$$

to represent block math.
Type

 1$$ a + b = c $$
 2
 3or
 4
 5$ a + b = c $
 6
 7or 
 8
 9$
10a + b = c
11$

to represent inline math.

image pasting

Agit CMS supports Ctrl + v to paste image into the editor.

This feature is useful when you want to past a screen capture without looking for its file name.

Set media folder path and media public path to enable this feature.

Media

![](${media_public_path}/example.png) written in the markdown editor panel (left side) gets parsed into <img src="http://localhost:${random_port}/${media_public_path}/example.png"> in the preview panel at the right side . (${media_public_path} is a media public path)

Agit CMS starts local http server on ${random_port} at media folder path in the filesystem to serve media contents.
Http server automatically closes when Agit CMS is closed.

There’s a couple of things to note

  • On Windows, you have to tell windows to allow Agit CMS to start http server when warning is shown.
  • Image placed at the same folder as the markdown post file is in cannot be previewed at this version.

To quickly get image path you want to insert into the editor, Agit CMS has a file explorer shortcut button Media for it.
It opens media folder path, and selected image’s public path will be copied into your clipboard.
This way, you can easily type ![](${ctrl + v}) (where ${ctrl + v} means pressing ctrl + v) to insert the image.

Comments