I've made a simple function that returns the markup of a rich text property as a string by just returning the value of the property. Myproblem is that it crashes whenever there's a macro in it. Is there a way to render it and get the macro content in the string as well before returning it?
I should perhaps add that I do this in a SurfaceController to be able to reach it with an Ajax script. I do the same thing in a regular RenderMvcController at page load and then it works just fine. So why is there a different between these two ways?
Render rich text property with macros to string
I've made a simple function that returns the markup of a rich text property as a string by just returning the value of the property. Myproblem is that it crashes whenever there's a macro in it. Is there a way to render it and get the macro content in the string as well before returning it?
I should perhaps add that I do this in a SurfaceController to be able to reach it with an Ajax script. I do the same thing in a regular RenderMvcController at page load and then it works just fine. So why is there a different between these two ways?
is working on a reply...