xsd - Override XHTML validation for Rich Text Fields in Sitecore -


i'm trying embed renderings detailed in this article. when try add rendering rich text field xhtml validation errors. can't disable xhtml validation client wanted extend schema used validation. stored in /sitecore/shell/schemas directory.

the markup rendering i'm trying embed is:

<smart:addresssnippet runat="server" /> 

i've tried add new schema smart namespace doesn't seem work. when go html rich text field sitecore has rewritten code be:

<smart:addresssnippet runat="server" xmlns:smart="http://www.sitecore.net/xhtml"></smart:addresssnippet> 

this fails validation. has encountered or way add renderings validation schema?

i've tested adding following xml on local instance sitecore\shell\schemas\xhtml.xsd , renders tag wanted , not have validation errors in rich text editor.

  <xs:element name="smart:addresssnippet">     <xs:complextype mixed="true">       <xs:choice minoccurs="0" maxoccurs="unbounded">       </xs:choice>     </xs:complextype>   </xs:element>  

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -