1

Topic: Disable HTML correction? - PHPNUKE?

Hiya Guys,

Recently installed nuke 7.7 which obviously has tinymce included. Fantastic tool!

However i am struggling inputting a few pages into the editor as it keeps erasing parts of my coding. I am presuming this is down to my invalid html and I know that parts of my code need a seperate .css to be correctly verified but this really isn't possible for my setup, I want something that is quick and easy simple cut and paste job.

Is there a way I can disable how tinymce cleans the html up? I am struggling with marquee commands and table background images & borders right now and it's becoming a right pain as to get it to look right I have to bypass the the entire setup and paste my code directly into my database to get around the problem.

Which files do I need to edit?

Thankyou very much in advance!

2

Re: Disable HTML correction? - PHPNUKE?

http://tinymce.moxiecode.com/tinymce/do … eanup.html

so

tinyMCE.init(
 ... 

 cleanup : false,

 ...
);

3

Re: Disable HTML correction? - PHPNUKE?

Hi there thanks very much for the reply.

I am still a little confused as I do not have those exact lines of coding in the phpnuke version but I think this is the file I should be looking at?

/**
* $RCSfile: tiny_mce_src.js,v $
* $Revision: 1.168 $
* $Date: 2005/03/06 20:51:43 $
*


file: tiny_mce_src.js

I have changed the following lines to false:

defParam("verify_html", true);

______________________________________________

        var htm = skip_cleanup ? inst.getBody().innerHTML : tinyMCE._cleanupHTML(inst.getDoc(), this.settings, inst.getBody(), this.visualAid, true);

        //var htm = tinyMCE._cleanupHTML(inst.getDoc(), tinyMCE.settings, inst.getBody(), false, true);


*/

But there are loads of other parameters in this file that are set to "true" I have looked at so many now my brain is starting to fry! lol could someone please verify what I have done is ok?

4

Re: Disable HTML correction? - PHPNUKE?

I think you shouldn't edit the default values inside tiny sources directly.

Try to find a section called tinyMCE.init . Thats where that setting should go.

5

Re: Disable HTML correction? - PHPNUKE?

Hiya Dragoon,

Thanks for your reply.

Those changes didnt make any different anyway so I have put them back to how they were.

Unfortunately I do not have a section or cannot seem to find it..... :S in the phpnuke version.

I have just redone all my coding to W3c standards and pasted it in and still parts of the code are being erased.... what do I have to do to get this to accept it apart from turning it off??? ;'(

Last edited by jasper1106 (2005-08-02 14:48:47)

6

Re: Disable HTML correction? - PHPNUKE?

I have pasted my Validated CSS into /themes/advanced/editor_content.css

When i paste my html into the source editior and click update the page displays fine in the box but with a yellow exclamation mark in the task bar saying there are errors. When i save it the page is still displays wrong and doesnt seem to be reading the CSS even with HTML 4.01 Trad validated HTML.

Even in preview it displays wrong. It doesnt like background images for the tables. This is the main issue.

Last edited by jasper1106 (2005-08-02 15:26:27)