The macro uses an RTE as a parameter. If I call the macro by itself in a gridview everything works fine.
When called inside of an RTE, the macro will render correctly in the RTE, but will loose any non P tags that were included when the macro RTE param was authored.
Issues with Macro Rendering
Hey Our.
I'm working with some macros right now and am seeing some weird stuff. I hope someone can shed some light on the behavior for me.
I have this macro.cshtml
It is plugged into an RTE and everything wires up just fine. The problem occurs when the view is rendered this is the output.
What exactly am I doing wring here? Should I render a partial inside the macro partial and pass the values over I need?
Thoughts?
So I was able to track the issue down to TinyMCE configuration - atleast that's where I am now.
I've added the following value to the config and refreshed app pools, but still no joy.
figcaption[class|style],
Hi Joe,
I think you also need to add this one to the tinyMce conifg :
figure
And have you checked if the macro outputs correctly when you added it directly to the template. Just to rule out issues with the macro itself.
Dave
just for my info,, does your code has given line of code in starting of your macro code file.?
And u have this output from ur website in html(lke inspecting html) or is it showing something on webpage also?
@Dave and @Bhawna
Yes on both counts.
The macro uses an RTE as a parameter. If I call the macro by itself in a gridview everything works fine.
When called inside of an RTE, the macro will render correctly in the RTE, but will loose any non P tags that were included when the macro RTE param was authored.
is working on a reply...