Documentation

Shortcode

shortcodes

Type: Boolean Object

Default: object

Set to default shortcodes. For example, if you type h1. at the start of text line and press space key the current block of content will be converted to the H1 heading tag. Here is the full list of shortcodes:

  • p. to p
  • quote. to blockquote
  • pre. to pre
  • h1. to h1
  • h2. to h2
  • h3. to h3
  • h4. to h4
  • h5. to h5
  • h6. to h6

Shortcodes can be turned off:

$R('#content', {
    shortcodes: false
});