Merge branch 'dev-v7' of https://github.com/umbraco/Umbraco-CMS into dev-v7

This commit is contained in:
Shannon
2016-05-02 23:06:45 +02:00
34 changed files with 216 additions and 72 deletions

View File

@@ -15,7 +15,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
{
/// <summary>
/// A value converter for TinyMCE that will ensure any macro content is rendered properly even when
/// A value converter for TinyMCE that will ensure any macro content is rendered properly even when
/// used dynamically.
/// </summary>
// because that version of RTE converter parses {locallink} and executes macros, when going from
@@ -38,7 +38,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
UmbracoContext.Current.InPreviewMode = preview;
var sb = new StringBuilder();
try
{
var umbracoHelper = new UmbracoHelper(UmbracoContext.Current);
@@ -55,7 +55,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
finally
{
// restore
UmbracoContext.Current.InPreviewMode = inPreviewMode;
UmbracoContext.Current.InPreviewMode = inPreviewMode;
}
return sb.ToString();
@@ -109,12 +109,12 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
if (modified)
{
return doc.DocumentNode.OuterHtml;
return new HtmlString(doc.DocumentNode.OuterHtml);
}
}
}
return sourceString;
return new HtmlString(sourceString ?? string.Empty);
}
}
}

View File

@@ -192,7 +192,8 @@ namespace Umbraco.Web.WebServices
new
{
path = syncPath,
contents = t.Design
contents = t.Design,
alias = t.Alias // might have been updated!
});
}
catch (Exception ex)

View File

@@ -45,7 +45,7 @@ namespace umbraco.cms.presentation.create.controls
Cultures.SelectedValue);
BasePage.Current.ClientTools
.ChildNodeCreated()
.ReloadActionNode(false, true)
.CloseModalWindow();
}