TinyMCE and source formatting [solved]

Talk about new features for CMSMS and modules.
Post Reply
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

TinyMCE and source formatting [solved]

Post 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.
Last edited by kermit on Sun Oct 14, 2007 2:27 pm, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am

Re: TinyMCE and source formatting

Post 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.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: TinyMCE and source formatting

Post 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.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: TinyMCE and source formatting

Post 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.....
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
User avatar
pbrady
Forum Members
Forum Members
Posts: 96
Joined: Sat Feb 10, 2007 4:31 pm

Re: TinyMCE and source formatting [solved]

Post 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
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: TinyMCE and source formatting [solved]

Post 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
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
User avatar
pbrady
Forum Members
Forum Members
Posts: 96
Joined: Sat Feb 10, 2007 4:31 pm

Re: TinyMCE and source formatting [solved]

Post 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
Post Reply

Return to “Feature ideas”