Ok, I'm new to this but I think I can help you.. the problem is that Dolphin has a built in "html stripper" called Tinymce. The way I get HTML on my home page is to basically 1. Disable Tinymce 2. Make a custom block with the HTML I want and save it 3. Reenable Tinymce (because if you don't you AND your users will constantly get stack overflow errors).. now once you save it you are good to go but if you want to edit the block then you have to start over at square one.. does that make sense? Ok, so now how to disable TinyMCE..
1. Open dolphin/plugins/tiny_mce/tiny_mce_src.
js in a text editor
2. Find this code:
tinyMCE.baseURL;
}
// Set default values on settings
this._def("mode", "none");
this._def("theme", "advanced");
this._def("plugins", "", true);
this._def("language", "en");
this._def("docs_language", this.settings.language);
this._def("elements", "");
this._def("textarea_trigger", "mce_editable");
this._def("editor_selector", "");
this._def("editor_deselector", "mceNoEditor");
this._def("valid_elements", "+a[id|style|rel|rev|charset|hreflang|dir|lang|tabinde x|accesskey|type|name|href|target|title|class|onfo cus|onblur|onclick|ondblclick|onmousedown|onmouseu p|onmouseover|onmousemove|onmouseout|onkeypress|on keydown|onkeyup],-strong/-b[class|style],-em/-i[class|style],-strike[class|style],-u[class|style],#p[id|style|dir|class|align],-ol[class|style],-ul[class|style],-li[class|style],br,img[id|dir|lang|longdesc|usemap|style|class|src|onmous eover|onmouseout|border|alt=|title|hspace|vspace|w idth|height|align],-sub[style|class],-sup[style|class],-blockquote[dir|style],-table[border=0|cellspacing|cellpadding|width|height|clas s|align|summary|style|dir|id|lang|bgcolor|backgrou nd|bordercolor],-tr[id|lang|dir|class|rowspan|width|height|align|valig n|style|bgcolor|background|bordercolor],tbody[id|class],thead[id|class],tfoot[id|class],#td[id|lang|dir|class|colspan|rowspan|width|height|ali gn|valign|style|bgcolor|background|bordercolor|sco pe],-th[id|lang|dir|class|colspan|rowspan|width|height|ali gn|valign|style|scope],caption[id|lang|dir|class|style],-div[id|dir|class|align|style],-span[style|class|align],-pre[class|align|style],address[class|align|style],-h1[id|style|dir|class|align],-h2[id|style|dir|class|align],-h3[id|style|dir|class|align],-h4[id|style|dir|class|align],-h5[id|style|dir|class|align],-h6[id|style|dir|class|align],hr[class|style],-font[face|size|style|id|class|dir|color],dd[id|class|title|style|dir|lang],dl[id|class|title|style|dir|lang],dt[id|class|title|style|dir|lang],cite[title|id|class|style|dir|lang],abbr[title|id|class|style|dir|lang],acronym[title|id|class|style|dir|lang],del[title|id|class|style|dir|lang|datetime|cite],ins[title|id|class|style|dir|lang|datetime|cite]");
3. and add this after it:
tinyMCE.init({
entity_encoding:"raw"
});
After you do that you can put HTML ANYWHERE on the site and it will work, but like I said you will get strange error messages until you take that code back out.. but even after you take that code out the html blocks will continue to work fine as long as you don't edit them.
Hope this helped someone!
Mscott
Bookmarks