Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#301 2007-05-13 21:25:19

ShaunDR
New Member
Registered: 2007-05-11
Posts: 5

Re: hak_tinymce WYSIWYG article editor

Hmm seems I can’t have both functionalities. Or, at least, doing so is beyond my ability.

Offline

#302 2007-05-13 22:54:09

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Let me see how involved it would be to create a smartypants plugin. No promises yet though.


Shoving is the answer – pusher robot

Offline

#303 2007-05-14 02:18:45

ShaunDR
New Member
Registered: 2007-05-11
Posts: 5

Re: hak_tinymce WYSIWYG article editor

Thanks for considering it.

Offline

#304 2007-05-20 23:13:50

ShaunDR
New Member
Registered: 2007-05-11
Posts: 5

Re: hak_tinymce WYSIWYG article editor

No go?

Offline

#305 2007-05-21 14:01:08

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Sorry been swamped. Haven’t had a chance to look at it yet.


Shoving is the answer – pusher robot

Offline

#306 2007-06-06 20:20:59

mattgilbert
Member
Registered: 2006-03-23
Posts: 70

Re: hak_tinymce WYSIWYG article editor

Sorry if that has been covered already; I tried digging through and didn’t find anything similar.

Is there a way to control which css styles can be applied in the editor? I’m using <h1> and <h2> for other stuff on the site, and need to limit the user to just <h3>, if possible.

Also, is there a way to turn the editor on by default?

Last edited by mattgilbert (2007-06-06 20:38:46)

Offline

#307 2007-06-06 23:47:29

tameboy
Plugin Author
Registered: 2006-06-29
Posts: 48

Re: hak_tinymce WYSIWYG article editor

Matt

your first question – you need to add a line to the initialization:

theme_advanced_blockformats : "p,h3",

this would limit the user to styling only paragraphs and h3.

I’m not absolutely sure about your second question but I think the following is true, certainly works for me:

In the hak_tinymce Preferences tab, if you select ‘enable editor for article body’ the editor should come on by default for new articles, and it should work for existing articles as long as you haven’t already used textile or convert linebreaks in that article.

Offline

#308 2007-06-07 00:02:32

mattgilbert
Member
Registered: 2006-03-23
Posts: 70

Re: hak_tinymce WYSIWYG article editor

Rock! the first part worked beautifully.

But aparently “enabling” the editor isn’t the same as having it on by default, at least not for me. There don’t seem to be any errors, by the way.

Thanks for the help!

Offline

#309 2007-06-07 14:00:32

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

You need to set Use Textile to “Leave text untouched” in Admin -> Preferences. That will make it come on by default for new articles.


Shoving is the answer – pusher robot

Offline

#310 2007-06-07 14:08:58

mattgilbert
Member
Registered: 2006-03-23
Posts: 70

Re: hak_tinymce WYSIWYG article editor

Worked perfectly! Thank you!

Offline

#311 2007-07-03 14:57:48

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

Re: hak_tinymce WYSIWYG article editor

Hi all,
how can I get a bigger font-size in the body and excerpt textareas? The default one is so small!
I thought about modifying the css files in the themes/advanced folder (as I use the advanced theme), but it doesn’t seem to work…

Thanks


Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com

Offline

#312 2007-07-03 16:08:12

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

That should do it. Could it be getting overridden in the cascade by something else?

You can also specify a css file to use for the content area with the content_css attribute. This way you don’t have to hack the tinyMCE install.

Last edited by hakjoon (2007-07-03 16:09:02)


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB