how to insert a <div></div> with a WYSIWYG editor

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
neophron
Forum Members
Forum Members
Posts: 145
Joined: Sun Feb 12, 2006 12:11 am

how to insert a <div></div> with a WYSIWYG editor

Post by neophron »

Hi,

I'm wondering how to insert a div with FCKeditor/Xinha/TinyMCE. There is a option for TinyMCE, it must be activated --> layers. But there are no new buttons after the activation. Is there a way to change the FCKeditor or Xinha to insert also layers? I thought a workaround for Xinha would be to manipulate the templates which can be inserted with this editor.

greetings, neophron
Debon

Re: how to insert a <div></div> with a WYSIWYG editor

Post by Debon »

Neophron, I believe you need to switch to code view mode in order to do this. If you are using FCKEditor, look for a button marked Source. After switching to code view you next need to position the cursor at the location at which you wish to enter the or whatever code you wish. Hope this helps. CHEERS!!!!
Last edited by Debon on Wed Jan 31, 2007 1:57 am, edited 1 time in total.
User avatar
neophron
Forum Members
Forum Members
Posts: 145
Joined: Sun Feb 12, 2006 12:11 am

Re: how to insert a <div></div> with a WYSIWYG editor

Post by neophron »

Hi Debon,

for me it is not a problem to manipulate the code, but some clients without html-knowledge have to work with the WYSIWYG editors. And there is no way to insert a div without switching to code view.

neophron
chrisl
Forum Members
Forum Members
Posts: 57
Joined: Fri Dec 30, 2005 10:08 am

Re: how to insert a <div></div> with a WYSIWYG editor

Post by chrisl »

If your clients have little or no knowledge of HTML your best solution may be to create FCK templates for them.  You can put s  or whatever for them.  Be aware these templates can be in insert or overwrite mode.
cyberman

Re: how to insert a <div></div> with a WYSIWYG editor

Post by cyberman »

neophron wrote: There is a option for TinyMCE, it must be activated --> layers. But there are no new buttons after the activation.
Hmm, I'm wondering too. Also with manipulating module source directly it does NOT work  :(.
User avatar
neophron
Forum Members
Forum Members
Posts: 145
Joined: Sun Feb 12, 2006 12:11 am

Re: how to insert a <div></div> with a WYSIWYG editor

Post by neophron »

I digged in the Xinha forum, there was a similar posting. A workaround is to insert a snippet (first it has to be activated in the Xinha preferences). There is some kind of a template.html deep in the xinha directory which appears after klicking the snippet button.

neophron
Post Reply

Return to “CMSMS Core”