To enable a component template for inline editing we add the Enable inline editing for content
Template Building Block and optionally set the Default field HTML Tag
, which defaults to <span>
.
We also add the appropriate markup to the Output. For example, I understand we can use RenderComponentPresentation
or RenderComponentField
(in DWT), tcdl:
tags, tridion:
controls (Java) / tags (.NET), or output the inline editing JSON Markup directly.
I'd like to choose these fields based on the schema field or how its presented.
Is there a tag, parameter, setting, or configuration that lets me change the wrapping per field?
Background: I mainly want to choose between a span for inline HTML tags and a div for block-level elements to make XPM borders wrap correctly. For now, I'll try adjusting Staging-specific styles and maybe add an XPM-specific class as needed.