move template sections overlay to infinite editors

This commit is contained in:
Mads Rasmussen
2018-08-01 13:13:09 +02:00
parent d7c0a92d9f
commit 37db8516ed
3 changed files with 18 additions and 0 deletions

View File

@@ -266,6 +266,23 @@
open(editor);
}
/**
* @ngdoc method
* @name umbraco.services.editorService#templateSections
* @methodOf umbraco.services.editorService
*
* @description
* Opens the template sections editor in infinite editing, the submit callback returns the type to insert
* @param {Callback} editor.submit Submits the editor
* @param {Callback} editor.close Closes the editor
* @returns {Object} editor object
*/
function templateSections(editor) {
editor.view = "views/common/infiniteeditors/templatesections/templatesections.html";
editor.size = "small";
open(editor);
}
/**
* @ngdoc method
* @name umbraco.services.editorService#sectionPicker
@@ -301,6 +318,7 @@
userGroupPicker: userGroupPicker,
sectionPicker: sectionPicker,
insertField: insertField,
templateSections: templateSections,
userPicker: userPicker
};