mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed that element editor dialog is not launched for Html and Form elements.
This commit is contained in:
@@ -270,7 +270,7 @@ angular
|
||||
// Because of this, we need to invoke "setParent" so that specific container types can perform element speficic initialization.
|
||||
receivedElement.setEditor(element.editor);
|
||||
receivedElement.setParent(element);
|
||||
if (receivedElement.type == "Content" && !!receivedElement.hasEditor) {
|
||||
if (!!receivedElement.hasEditor) {
|
||||
$scope.$root.editElement(receivedElement).then(function (args) {
|
||||
if (!args.cancel) {
|
||||
receivedElement.data = args.element.data;
|
||||
|
File diff suppressed because one or more lines are too long
@@ -237,7 +237,7 @@
|
||||
// Because of this, we need to invoke "setParent" so that specific container types can perform element speficic initialization.
|
||||
receivedElement.setEditor(element.editor);
|
||||
receivedElement.setParent(element);
|
||||
if (receivedElement.type == "Content" && !!receivedElement.hasEditor) {
|
||||
if (!!receivedElement.hasEditor) {
|
||||
$scope.$root.editElement(receivedElement).then(function (args) {
|
||||
if (!args.cancel) {
|
||||
receivedElement.data = args.element.data;
|
||||
|
Reference in New Issue
Block a user