KalikoCMS / KalikoCMS.Core

Open source content management system (CMS) for the ASP.NET platform.
GNU Lesser General Public License v3.0
145 stars 64 forks source link

Wrong parsing #142

Closed net4u closed 5 years ago

net4u commented 6 years ago

Hi

I have an issue with HTML content that is rendered as test as results in the print-screen:

https://www.dropbox.com/s/q6yltgc84x809zt/print-screen.png?dl=0

What may be the cause?

regards

fschultz commented 6 years ago

Hi, When using a HTML property in a view, using only the property name will select the proper HtmlString rendering (outputing HTML):

  <div> @Model.CurrentPage.MainBody </div>

While for instance @Model.CurrentPage.MainBody.Value would render as text. (It could however also be solved by using @Html.Raw(Model.CurrentPage.MainBody.Value) ).

Hope that helps!

net4u commented 6 years ago

Yes, it works. thnx

net4u commented 6 years ago

But I notticed something, I don't know that is bug or not: When I paste some raw html code into editor (source mode), supposing that it contains something like <img src="./images/myimage.png /> after saving the page, the content is changed into <img src="./Admin/content/images/myimage.png />

fschultz commented 6 years ago

Sorry for the delayed answer, missed the post.

This is a bug, the editor should not try to rewrite the image path and I'll add this as an issue to fix. Thanks!

fschultz commented 5 years ago

Pre-release packages (version 1.2.5-beta1) that address this issue are available at https://www.nuget.org/packages?q=kalikocms

fschultz commented 5 years ago

Final release of version 1.2.5 which targets this issue is available now at https://www.nuget.org/packages?q=kalikocms