From da651b8e0fd4f6d2481b9d6aa71bbb1fec727a6b Mon Sep 17 00:00:00 2001 From: mik Date: Thu, 15 Feb 2018 11:42:35 +0100 Subject: [PATCH] - update to v 6.2.0 --- README.md | 2 +- package.json | 2 +- public/html.js | 4 +++- public/htmlController.js | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7f8b2c7..e7848ca 100644 --- a/README.md +++ b/README.md @@ -15,5 +15,5 @@ bin/kibana-plugin install Plugins are officialy not supported, because of fast code changes even in minor Versions. The plugin is compatible with following Versions: -* kibana (=6.1.3) +* kibana (=6.2.0) diff --git a/package.json b/package.json index 3aa79a2..d3e0e85 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name": "kibana-html-plugin", "description": "This is a Kibana plugin which renders HTML in visualizations", - "version": "6.1.3" + "version": "6.2.0" } diff --git a/public/html.js b/public/html.js index a7d25c8..fc17037 100644 --- a/public/html.js +++ b/public/html.js @@ -12,6 +12,7 @@ import {CATEGORY} from 'ui/vis/vis_category'; import {VisFactoryProvider} from 'ui/vis/vis_factory'; import {VisTypesRegistryProvider} from 'ui/registry/vis_types'; import {VisSchemasProvider} from 'ui/vis/editors/default/schemas'; +import { DefaultEditorSize } from 'ui/vis/editor_size'; VisTypesRegistryProvider.register(HtmlVisProvider); @@ -30,7 +31,8 @@ function HtmlVisProvider(Private) { }, editorConfig: { optionsTemplate: optionsTemplate, - enableAutoApply: true + enableAutoApply: true, + defaultSize: DefaultEditorSize.LARGE }, options: { showTimePicker: false, diff --git a/public/htmlController.js b/public/htmlController.js index b516afb..d8a608d 100644 --- a/public/htmlController.js +++ b/public/htmlController.js @@ -10,7 +10,7 @@ module.controller('KbnHtmlEditController', ['$scope', function($scope) { module.controller('KbnHtmlVisController', function ($scope, $sce) { $scope.$watch('renderComplete', function () { var html = $scope.vis.params.html; - if (html) { + if ($scope.updateStatus.params && html) { $scope.html = $sce.trustAsHtml(html); } $scope.renderComplete();