From c100054d68c1f198bca6741403c017c000758e5e Mon Sep 17 00:00:00 2001 From: Akeru Date: Wed, 18 Jun 2014 17:28:40 +0200 Subject: [PATCH] Allow [[..]] filter notation in all text panels Based on #408 with fixed filter service method. Supports html, text and markdown panels. --- src/app/panels/text/module.html | 7 +++---- src/app/panels/text/module.js | 26 ++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/app/panels/text/module.html b/src/app/panels/text/module.html index adaf823be52..5b6c55c9954 100644 --- a/src/app/panels/text/module.html +++ b/src/app/panels/text/module.html @@ -1,10 +1,9 @@
- - {{panel.content}} + -

+

-

+

diff --git a/src/app/panels/text/module.js b/src/app/panels/text/module.js index 37735d3b376..460a6c09919 100644 --- a/src/app/panels/text/module.js +++ b/src/app/panels/text/module.js @@ -14,7 +14,8 @@ define([ 'angular', 'app', 'underscore', - 'require' + 'require', + 'services/filterSrv' ], function (angular, app, _, require) { 'use strict'; @@ -98,4 +99,25 @@ function (angular, app, _, require) { .replace(//g, '>') + .replace(/