AxCMS.net uses tinyMCE as a text editor. You might have noticed, that it wraps any text you type into the editor into the <p>-element. Usually it is ok, but sometimes you don't want this behaviour. For example, if you add a placeholder between <h1> and </h1> you don't want additional pair of <p>...</p>.
Fortunately you can control this behaviour of tinyMCE with an option "forced_root_block".
Locate the file "\AxCMSweb\EAL.js" and look for "forced_root_block" in it. You will find something like this:
forced_root_block : 'p'
Replace it with:
forced_root_block : false
and no more <p>-blocks will be added automatically around your text.
If you don't find this option in EAL.js, add it to the function InitMCE:
function InitMCE(elemID, validElements, path, labelID, pageID) {
tinyMCE.init({
mode: "exact", elements: elemID,
theme: "advanced",
relative_urls: "false",
verify_html: "true",
valid_elements: validElements,
plugins: "insertlink,table,heading",
heading_clear_tag: "p",
forced_root_block : false,
theme_advanced_buttons1_add_before: "h1,h2,h3,h4,h5,h6",
theme_advanced_toolbar_location: "external",
cms_application_virtual_path: path,
ax_label_id: labelID,
ax_page_id: pageID,
content_css: GetDocumentStylesheets()
});
}
efc23da7-5d53-4620-93a5-26efd27e69e5|2|5.0