Fixed that element editor dialog is not launched for Html and Form elements.

This commit is contained in:
Sipke Schoorstra
2015-04-03 17:42:11 +02:00
parent eb61269d85
commit 05faccd722
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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;