From 142dea11a3bbbff1e5f1fc2c248f49c978d7f966 Mon Sep 17 00:00:00 2001 From: jensp Date: Wed, 3 Jul 2019 13:14:06 +0000 Subject: [PATCH] Last dialog components for TinyMCE images plugin git-svn-id: https://svn.libreccm.org/ccm/trunk@6145 8810af33-2d31-482b-a856-94f89814c4df --- .../plugins/ccm-cms-images/plugin.js | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/ccm-cms-tinymce/plugins/ccm-cms-images/plugin.js b/ccm-cms-tinymce/plugins/ccm-cms-images/plugin.js index d38fc6438..045aa8c58 100644 --- a/ccm-cms-tinymce/plugins/ccm-cms-images/plugin.js +++ b/ccm-cms-tinymce/plugins/ccm-cms-images/plugin.js @@ -1,4 +1,4 @@ -const ImageDialog = function (editor) { + const ImageDialog = function (editor) { function getImageData(editor) { @@ -104,6 +104,32 @@ const ImageDialog = function (editor) { { text: "Zoom", value: "imageZoom" }, { text: "Gallery", value: "imageGallery" } ] + }, + { + type: "checkbox", + name: "caption", + label: "Caption" + }, + { + type: "grid", + columns: 2, + label: "Dimension", + items: [ + { + type: "input", + name: "width", + label: "Width" + }, + { + type: "input", + name: "height", + label: "Height" + } + ] + }, + { + type: "htmlpanel", + html: "" } ] },