• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: WYSIWYG spoils html code
PostPosted: Sat Aug 11, 2012 6:23 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Thu Feb 08, 2007 6:11 pm
Posts: 481
Location: Florida
I think the editor works just as intended, you need to separate this custom html from the content that's inside the main editor. There's a variety of ways, make a new template without the editor, turn it off for that page, or for a large site that I did where the client had many, many pages that had lists of images and text that needed to be floated and styled, I did the following:

On the template I put this at the very top, before the html start tag:

Code:
{content block="custom" page_tab="main" assign="custom" label="Custom Content" wysiwyg="false"}


Then one the pages with this custom stuff, I put the html required and then stuck the following where it appears in the content flow:

Code:
{$custom}


So you can have the regular text, the images, the stuff that the wysiwyg can handle and where you want to put the custom stuff, just put {$custom}. Make sure you don't stick it between p tags or some other way of making it not validate.


Top
 Profile  
 
 Post subject: Re: WYSIWYG spoils html code
PostPosted: Sat Aug 11, 2012 6:33 pm 
Offline
Forum Members
Forum Members

Joined: Tue Jul 17, 2012 8:24 am
Posts: 19
I know there are ways to side-step this "bug feature" and I use some of it, thanks a lot Carasmo for a complicated (for me) one :) Maybe I'll try it on a bigger project.

I know I can disable wysiwyg mode on a certain page, or I can disable wysiwyg mode globally on all pages, and I already did...

But I think it's not a complete solution.
carasmo wrote:
I think the editor works just as intended

If this behavior is a feature I'd like it to be documented, if it's a bug, well, is there a bug-tracker?


Top
 Profile  
 
 Post subject: Re: WYSIWYG spoils html code
PostPosted: Sat Aug 11, 2012 8:01 pm 
Online
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3647
Location: The Netherlands
Колючка wrote:
If this behavior is a feature I'd like it to be documented, if it's a bug, well, is there a bug-tracker?

http://www.tinymce.com/develop/bugtracker.php
And please don't mention there that you are using CMS Made Simple...else they will laugh at us for ages

_________________
Get nice guestbook messages from your site visitors with the brand new Gbook module.
Integrate Piwik Web Analytics in your site admin with the Piwik module.
Extend your global site settings with the Custom Global Settings module.
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here
Announcement: The Fifth Dutch CMS Made Simple Workshop coming up?


Last edited by Jos on Sat Aug 11, 2012 8:48 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: WYSIWYG spoils html code
PostPosted: Sat Aug 11, 2012 8:12 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11812
Location: Arizona
You can't expect a wysiwyg to not correct your code when everybody expects it to correct their code, it helps pages validate and everyone should want valid code, even search engines are looking at that now...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: WYSIWYG spoils html code
PostPosted: Sat Aug 11, 2012 9:45 pm 
Offline
New Member

Joined: Sat Aug 11, 2012 5:49 pm
Posts: 3
FWIW, I switched from PC to Mac and my HTML editor (the popup window that appears by pressing the HTML button) is now appearing.

And since I was able to use the PC in the same way a couple weeks ago, I'm guessing something must've changed.

If this is of use to anyone (and I'm new, so may be clueless and rehasing well known stuff), my OS is Windows 7 on an HP PC.


Top
 Profile  
 
 Post subject: Re: WYSIWYG spoils html code
PostPosted: Sat Aug 11, 2012 11:04 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Sun Jul 27, 2008 1:36 am
Posts: 190
Location: USA
Колючка wrote:
...That's not my point. I just don't like undocumented, unpredictable, "undisablable" thing. ...

Have you visited the tinymce.com reference docs or searched for (or asked about) this on their forum? TinyMCE has many "documented" cleanup-related config. options that may (or may not) let you "cripple" the editor to your liking.

One can, at their own risk, specify extra options in the Extra Configuration box under the Advanced tab of the Extensions>>TinyMCE WYSIWYG page of the Admin console.

That said, just because something may be possible doesn't mean it's a good idea!

_________________
Towering genius disdains a beaten path. It seeks regions hitherto unexplored.
--Abraham Lincoln, speech, Jan. 27, 1838


Top
 Profile  
 
 Post subject: Re: WYSIWYG spoils html code
PostPosted: Sun Aug 12, 2012 5:27 am 
Offline
Forum Members
Forum Members

Joined: Tue Jul 17, 2012 8:24 am
Posts: 19
Jos wrote:
when everybody expects it to correct their code

And why this "everybody" people are expect this? Look, I'm a newbie in html wysiwyg editing and I didn't expect it will "correct" my code without forewarning.
fredp wrote:
Have you visited the tinymce.com reference docs or searched for (or asked about) this on their forum?

If it was only in TinyMCE thing I'd surely visit their forum, but I saw it in MicroTiny, TinyMCE and FСКeditorХ wysiwyg editors, and I certainly thought that was cms's problem.

OK, now I see that's kinda "feature" and can not be disabled. I don't like it but what can I do? Just don't use wysiwyg at all. Topic is not "solved" but must be "closed" I guess. Thank you everybody for help and patience.

Dismissed :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner