From 68b7b6cd97f7c84b78af552eca98470dc239514a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sat, 15 Dec 2018 17:53:52 +0100 Subject: [PATCH] minor tweaks to text panel --- public/app/plugins/panel/text/editor.html | 22 +++++++--------------- public/app/plugins/panel/text/module.ts | 9 ++++++++- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/public/app/plugins/panel/text/editor.html b/public/app/plugins/panel/text/editor.html index bae36a1ea2a..2105f0b4674 100644 --- a/public/app/plugins/panel/text/editor.html +++ b/public/app/plugins/panel/text/editor.html @@ -1,23 +1,15 @@ -
-
-
- Mode - - - -
+
+
+ Mode + + +
-

Content

- - - (This area uses Markdown. HTML is not supported) - -
- +
diff --git a/public/app/plugins/panel/text/module.ts b/public/app/plugins/panel/text/module.ts index ed446d1699b..875a7728568 100644 --- a/public/app/plugins/panel/text/module.ts +++ b/public/app/plugins/panel/text/module.ts @@ -2,6 +2,13 @@ import _ from 'lodash'; import { PanelCtrl } from 'app/plugins/sdk'; import Remarkable from 'remarkable'; +const defaultContent = ` +# Title + +For markdown syntax help: [commonmark.org/help](https://commonmark.org/help/) + +`; + export class TextPanelCtrl extends PanelCtrl { static templateUrl = `public/app/plugins/panel/text/module.html`; static scrollable = true; @@ -11,7 +18,7 @@ export class TextPanelCtrl extends PanelCtrl { // Set and populate defaults panelDefaults = { mode: 'markdown', // 'html', 'markdown', 'text' - content: '# title', + content: defaultContent, }; /** @ngInject */