diff --git a/apollo-portal/src/main/resources/static/config.html b/apollo-portal/src/main/resources/static/config.html index a6eaeb85722beddde1e550d68b808cc1adc70de6..9fb0b6ef67222913372c4fe011d879cc02692a21 100644 --- a/apollo-portal/src/main/resources/static/config.html +++ b/apollo-portal/src/main/resources/static/config.html @@ -8,6 +8,7 @@ + @@ -364,6 +365,7 @@ + diff --git a/apollo-portal/src/main/resources/static/scripts/directive/item-modal-directive.js b/apollo-portal/src/main/resources/static/scripts/directive/item-modal-directive.js index 9b73cd452e39c7d97df32e6aa06da696e37574a1..317fc5d8db7dd8bc1fb94c311fe9b1092ae437a7 100644 --- a/apollo-portal/src/main/resources/static/scripts/directive/item-modal-directive.js +++ b/apollo-portal/src/main/resources/static/scripts/directive/item-modal-directive.js @@ -30,6 +30,8 @@ function itemModalDirective(toastr, $sce, AppUtil, EventManager, ConfigService) scope.valueWithHiddenChars = $sce.trustAsHtml(''); }); + $("#valueEditor").textareafullscreen(); + function doItem() { if (!scope.item.value) { diff --git a/apollo-portal/src/main/resources/static/vendor/jquery-plugin/jquery.textareafullscreen.js b/apollo-portal/src/main/resources/static/vendor/jquery-plugin/jquery.textareafullscreen.js new file mode 100755 index 0000000000000000000000000000000000000000..60e5ad54408e956be5d400e2e16a1f340ea6dcf9 --- /dev/null +++ b/apollo-portal/src/main/resources/static/vendor/jquery-plugin/jquery.textareafullscreen.js @@ -0,0 +1,199 @@ +/* + + jQuery Textarea Fullscreen Editor v1.0 + Fullscreen text editor plugin for jQuery. + + :For more details visit http://github.com/CreoArt/jquery.textareafullscreen + + - CreoArt + - http://github.com/CreoArt + + Licensed under Apache - https://raw.githubusercontent.com/CreoArt/jquery.textareafullscreen/master/LICENSE + +*/ +(function($) { + "use strict"; + + var isFullscreen = false, + $el, + $wrapper, + $editor, + $icon, + $overlay, + transitionDuration = 300, + sourceWidth, + sourceHeight, + settings = { + overlay: true, + maxWidth: '', + maxHeight: '' + }; + var methods = { + + init: function(opts) { + + settings = settings || {}; + $.extend(true, settings, settings); + $.extend(true, settings, opts); + + $el = $(this); + if (!$el.is('textarea')) { + $.error( + 'Error initializing Textarea Fullscreen Editor Plugin. It can only work on