From 64f5146a621bceb9ddabbd9ccc5b3b998e58274e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 11 Jan 2017 12:33:12 +0100 Subject: [PATCH] change(text panel): removed rarely used (and not properly working), text mode option, closes #6389, closes #7214 --- public/app/plugins/panel/text/editor.html | 7 ------- public/app/plugins/panel/text/module.ts | 6 ++++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/public/app/plugins/panel/text/editor.html b/public/app/plugins/panel/text/editor.html index 357becff5fd..ab1fe802d87 100644 --- a/public/app/plugins/panel/text/editor.html +++ b/public/app/plugins/panel/text/editor.html @@ -6,13 +6,6 @@ - -
- Font Size - - - -
diff --git a/public/app/plugins/panel/text/module.ts b/public/app/plugins/panel/text/module.ts index c817c184380..8c321e2e0c3 100644 --- a/public/app/plugins/panel/text/module.ts +++ b/public/app/plugins/panel/text/module.ts @@ -28,6 +28,10 @@ export class TextPanelCtrl extends PanelCtrl { onInitEditMode() { this.addEditorTab('Options', 'public/app/plugins/panel/text/editor.html'); this.editorTabIndex = 1; + + if (this.panel.mode === 'text') { + this.panel.mode = 'markdown'; + } } onRefresh() { @@ -39,8 +43,6 @@ export class TextPanelCtrl extends PanelCtrl { this.renderMarkdown(this.panel.content); } else if (this.panel.mode === 'html') { this.updateContent(this.panel.content); - } else if (this.panel.mode === 'text') { - this.renderText(this.panel.content); } this.renderingCompleted(); }