From 82d6b14eaad0d6f260785aebd8d812a42affd7e2 Mon Sep 17 00:00:00 2001 From: Anders Bjerner Date: Fri, 25 Oct 2019 21:35:14 +0200 Subject: [PATCH] Improved the editor service documentation a bit --- .../src/common/services/editor.service.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js b/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js index 02e85c278a..3c64401933 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js @@ -606,10 +606,12 @@ When building a custom infinite editor view you can use the same components as a * @methodOf umbraco.services.editorService * * @description - * Opens the document type editor in infinite editing, the submit callback returns the saved document type + * Opens the document type editor in infinite editing, the submit callback returns the alias of the saved document type. * @param {Object} editor rendering options - * @param {Callback} editor.submit Submits the editor - * @param {Callback} editor.close Closes the editor + * @param {Callback} editor.id Indicates the ID of the document type to be edited. Alternatively the ID may be set to `-1` in combination with `create` being set to `true` to open the document type editor for creating a new document type. + * @param {Callback} editor.create Set to `true` to open the document type editor for creating a new document type. + * @param {Callback} editor.submit Submits the editor. + * @param {Callback} editor.close Closes the editor. * @returns {Object} editor object */ function documentTypeEditor(editor) {