|
@@ -2,6 +2,13 @@ import _ from 'lodash';
|
|
|
import { PanelCtrl } from 'app/plugins/sdk';
|
|
import { PanelCtrl } from 'app/plugins/sdk';
|
|
|
import Remarkable from 'remarkable';
|
|
import Remarkable from 'remarkable';
|
|
|
|
|
|
|
|
|
|
+const defaultContent = `
|
|
|
|
|
+# Title
|
|
|
|
|
+
|
|
|
|
|
+For markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)
|
|
|
|
|
+
|
|
|
|
|
+`;
|
|
|
|
|
+
|
|
|
export class TextPanelCtrl extends PanelCtrl {
|
|
export class TextPanelCtrl extends PanelCtrl {
|
|
|
static templateUrl = `public/app/plugins/panel/text/module.html`;
|
|
static templateUrl = `public/app/plugins/panel/text/module.html`;
|
|
|
static scrollable = true;
|
|
static scrollable = true;
|
|
@@ -11,7 +18,7 @@ export class TextPanelCtrl extends PanelCtrl {
|
|
|
// Set and populate defaults
|
|
// Set and populate defaults
|
|
|
panelDefaults = {
|
|
panelDefaults = {
|
|
|
mode: 'markdown', // 'html', 'markdown', 'text'
|
|
mode: 'markdown', // 'html', 'markdown', 'text'
|
|
|
- content: '# title',
|
|
|
|
|
|
|
+ content: defaultContent,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/** @ngInject */
|
|
/** @ngInject */
|