Page 1 of 1

TinyMCE and source formatting [solved]

Posted: Sun Oct 14, 2007 2:19 am
by kermit
What TInyMCE does to beautifully formatted source that you enter or copy into the HTML source window is just plain brutal. Would be very nice if it would retain the formatting; at the very least, the line breaks.

The way it is now, it is very difficult and time-consuming to source-edit a page that was previously saved with TinyMCE as the editor. I do not recall FCK being this bad in this regard.

Re: TinyMCE and source formatting

Posted: Sun Oct 14, 2007 8:31 am
by Sy
I use PSPAD which is free, it has a nice feature to compress HTML or format it properly.  I never use the TinyMCE HTML view for any other than cut and paste simply because it doesn't support tab and I always jump out of it when pressing tab.

Get PSPAD from:

http://www.pspad.com/en/

Well worth a download.

Re: TinyMCE and source formatting

Posted: Sun Oct 14, 2007 9:49 am
by tsw
Problem with wysiwygs is that they dont work!

The whole idea is just broken by design.

Wysiwygs are meant for clueless users that cant remember how is written..

Anyways, we are just adding tiny from their repo so this feature request belongs to tiny dev team, we just integrate them to be a part of cmsms.

Re: TinyMCE and source formatting

Posted: Sun Oct 14, 2007 2:25 pm
by kermit
tsw wrote: Anyways, we are just adding tiny from their repo so this feature request belongs to tiny dev team, we just integrate them to be a part of cmsms.
Whaddyaknow, I found a source formatting option in the admin panel's TinyMCE configuration;  kinda went the round-a-bout way of finding it.. was looking for where to insert:

tinyMCE.init({
...
apply_source_formatting : true
});


and found a reference to a preference setting variable... THEN I went looking for where to change it...

It's not how *I* would format it, but it sure beats the mangled mess I was getting before.....

Re: TinyMCE and source formatting [solved]

Posted: Sat Dec 01, 2007 6:17 pm
by pbrady
Kermit,

Can you provide more info on this solution? Where did you find this piece of code? Or what fle did you place this code in? How does it fix formatting. I am having an awful time with these Wsywig editors.

-p

Re: TinyMCE and source formatting [solved]

Posted: Sat Dec 01, 2007 6:56 pm
by kermit
pbrady wrote: Can you provide more info on this solution? Where did you find this piece of code? Or what fle did you place this code in? How does it fix formatting. I am having an awful time with these Wsywig editors.
admin panel -> modules -> tinymce basic -> Apply source formatting to the output HTML

Re: TinyMCE and source formatting [solved]

Posted: Sun Dec 02, 2007 7:29 pm
by pbrady
Sorry...I guess I misunderstood. I was looking for the file where you inserted your code. Now, I understand that you did it from the CMS tinymce panel...sorry.

-p