help.axcms.netAxinom Logo
Save Save Chapter Send Feedback

KB10073: Cannot add HTML tags in content editor

AxCMS.net content editor strips down customly added HTML tags

SYMPTOMS

When You add custom HTML tags in content editor, eg:

<label for="select_130190" class="itemname">Anrede*</label>
<select id="select_130190" name="salutation" style="width:300px;" >      <option value="Frau" >Frau</option>      <option value="Herr" >Herr</option>
</select>

it gets stripped to this:

<p>Anrede*   Frau  Herr</p>

SOLUTION

Define used tags and their attributes in CmsSite.xml file located in templates folder. You should add them under HtmlRules like this:

<HtmlRules>
        <HtmlRule axid=...>
            ...   
            <Tag name="label" styles="default" attributes="for,class"/>
            <Tag name="select" styles="default" attributes="id,name,style"/>
            <Tag name="option" styles="default" attributes="value"/>
        ...
        </HtmlRule>

APPLIES TO

AxCMS.net 9.x