From 5324614c210a50459d0daaf28c987bcb5e0cb446 Mon Sep 17 00:00:00 2001 From: Ravi Ranjan Date: Thu, 17 Oct 2019 14:46:00 +0100 Subject: [PATCH] Add

tag below images so that text can be entered --- .../PostHtmlEditing/ImageInsertionManager.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/managed/OpenLiveWriter.PostEditor/PostHtmlEditing/ImageInsertionManager.cs b/src/managed/OpenLiveWriter.PostEditor/PostHtmlEditing/ImageInsertionManager.cs index e435787f..ed277238 100644 --- a/src/managed/OpenLiveWriter.PostEditor/PostHtmlEditing/ImageInsertionManager.cs +++ b/src/managed/OpenLiveWriter.PostEditor/PostHtmlEditing/ImageInsertionManager.cs @@ -416,7 +416,7 @@ namespace OpenLiveWriter.PostEditor.PostHtmlEditing Trace.WriteLine("There is a problem with the image file: " + imagePath); // Insert anyway, MSHTML will show a red X in place of the image. - htmlBuilder.AppendFormat(CultureInfo.InvariantCulture, "", HtmlUtils.EscapeEntities(UrlHelper.SafeToAbsoluteUri(imgUri))); + htmlBuilder.AppendFormat(CultureInfo.InvariantCulture, "

 

", HtmlUtils.EscapeEntities(UrlHelper.SafeToAbsoluteUri(imgUri))); continue; } @@ -436,7 +436,7 @@ namespace OpenLiveWriter.PostEditor.PostHtmlEditing //insert the default image html String imageElementAttrs = String.Format(CultureInfo.InvariantCulture, " width=\"{0}\" height=\"{1}\"", imageSize.Width, imageSize.Height); - htmlBuilder.AppendFormat(CultureInfo.InvariantCulture, "", HtmlUtils.EscapeEntities(UrlHelper.SafeToAbsoluteUri(imageFileEmbeddedThumbnail.FileUri)), HtmlUtils.EscapeEntities(imgUri.ToString()), imageElementAttrs); + htmlBuilder.AppendFormat(CultureInfo.InvariantCulture, "

 

", HtmlUtils.EscapeEntities(UrlHelper.SafeToAbsoluteUri(imageFileEmbeddedThumbnail.FileUri)), HtmlUtils.EscapeEntities(imgUri.ToString()), imageElementAttrs); } else if (currentEditor is BlogPostHtmlEditorControl && (imagePaths.Length > DELAYED_IMAGE_THRESHOLD || imageSize.Width * imageSize.Height > 16777216/*4096 X 4096*/)) { @@ -449,7 +449,7 @@ namespace OpenLiveWriter.PostEditor.PostHtmlEditing //insert the default image html String imageElementAttrs = imgUri.IsFile ? String.Format(CultureInfo.InvariantCulture, " width=\"{0}\" height=\"{1}\"", imageSize.Width, imageSize.Height) : String.Empty; - htmlBuilder.AppendFormat(CultureInfo.InvariantCulture, "", HtmlUtils.EscapeEntities(UrlHelper.SafeToAbsoluteUri(imgUri)), imageElementAttrs); + htmlBuilder.AppendFormat(CultureInfo.InvariantCulture, "

 

", HtmlUtils.EscapeEntities(UrlHelper.SafeToAbsoluteUri(imgUri)), imageElementAttrs); } } @@ -489,7 +489,7 @@ namespace OpenLiveWriter.PostEditor.PostHtmlEditing public static string MakeHtmlForImageSourceDelay(string path) { return - String.Format(CultureInfo.InvariantCulture, "", HtmlUtils.EscapeEntities(path), HtmlUtils.EscapeEntities(UrlHelper.SafeToAbsoluteUri(LoadingImagePath))); + String.Format(CultureInfo.InvariantCulture, "

 

", HtmlUtils.EscapeEntities(path), HtmlUtils.EscapeEntities(UrlHelper.SafeToAbsoluteUri(LoadingImagePath))); } internal static string ReferenceFixer(BeginTag tag, string reference, ISupportingFileService _fileService, OpenLiveWriter.PostEditor.ContentEditor editor)