# Panel (markdown)

Edit markdown and store it in variable

# Description

# Javascript API

Markdown panel offers javascript api to manipulate markdown editor. Api is exposed through window.__APP.panels.panelName. The four available methods are appendText(string), setText(string), hasText() and onChange(callback);

Example

__APP.panels.markdown__1.appendText("\n\nSee you soon, \nJoe Doe\n")

# Config

markdown:

	config:

		# Required | Type: string | Default: null
		# Input string
		input: "{$someContent}"

		# Required | Type: string | Default: null
		# Name of variable in which content should be stored
		output: "myvar"

		# UI
		ui:

			# Optional | Type: string | Default: null
			# Panel title
			title: "Panel title"

			# Optional | Type: string | Default: null
			# Panel description
			description: "Panel description"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22