I am using Glassmapper's BeginEditFrameBeginEditFrame
method to make a treelist editable in experience editorExperience Editor. I am using
<%using (BeginEditFrame(Model, "Edit Location", x => x.Locations)) {%>
<% if (HasLocations) {%>
'some code here'
<% else if (Sitecore.Context.PageMode.IsExperienceEditor){ %>
+Add Locations
<%} %>
<%} %>
+Add Location
text should be presented as in inline element and get displayed fine in the preview mode but in Experience Editor Button, the following gets appended:
<div class="scLooseFrameZone scEnabledChrome" sc_item="sitecore://master/{553F90DF-AC07-4941-B605-6F5F40270C57}?lang=en&ver=1" sc-part-of="editframe"><spanof="editframe">
<span class="scChromeData">{"commands":[{"click":"javascript:Sitecore.PageModes.PageEditor.postRequest('webedit:fieldeditor(command={86DECE56-8BD2-4FCC-9992-627D812089F5},fields=Locations,id={553F90DF-AC07-4941-B605-6F5F40270C57})',null,false)","header":"Edit Fields","icon":"/temp/iconcache/people/16x16/cubes_blue.png","disabledIcon":"/temp/cubes_blue_disabled16x16.png","isDivider":false,"tooltip":"Edit the following fields: Locations","type":null}],"contextItemUri":"sitecore://master/{553F90DF-AC07-4941-B605-6F5F40270C57}?lang=en&ver=1","custom":{},"displayName":"Edit Location","expandedDisplayName":""}</span>
+Add Locations
</div>
gets appended. This div makes the +Add Location
text as a block element and it shows up in the next line.
Is there a way I can change the Edit Frames enclosing brackettag from block element to inline element?