Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong parsing #142

Closed
net4u opened this issue Feb 13, 2018 · 6 comments
Closed

Wrong parsing #142

net4u opened this issue Feb 13, 2018 · 6 comments
Assignees
Milestone

Comments

@net4u
Copy link

net4u commented Feb 13, 2018

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
Copy link
Contributor

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
Copy link
Author

net4u commented Feb 16, 2018

Yes, it works. thnx

@net4u
Copy link
Author

net4u commented Feb 16, 2018

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
Copy link
Contributor

fschultz commented Mar 7, 2018

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
Copy link
Contributor

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

@fschultz
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants