Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#277 2007-04-11 20:39:49

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

Re: hak_tinymce WYSIWYG article editor

joel wrote:
Another cool feature would be to let the user apply a pre-defined css-class to the content. Is this possible via “styles” select list?

Check out the content_css param and the verify_css_classes param in the docs

Remember that this is just an integration of TinyMCE into Textpattern . It can do anything TinyMCE can do.


Shoving is the answer – pusher robot

Offline

#278 2007-04-12 06:57:48

joel
Member
Registered: 2004-11-26
Posts: 162

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Check out the content_css param and the verify_css_classes param in the docs

Remember that this is just an integration of TinyMCE into Textpattern . It can do anything TinyMCE can do.

I got a little bit carried away there :) Thanks for the info! I’ll look into it!

Thanks!

Last edited by joel (2007-04-12 07:53:53)

Offline

#279 2007-04-12 08:03:16

joel
Member
Registered: 2004-11-26
Posts: 162

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Check out the content_css param and the verify_css_classes param in the docs

I’ve now read this docs. Very useful for me I believe! But I don’t get wich file to make these changes in…

Since the styles-select-list isn’t included in the simple and advanced theme (besides in the image picker), is it possible to include that or do I have to upload another theme with that select list available?

Thanks!

Offline

#280 2007-04-12 14:02:18

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

Re: hak_tinymce WYSIWYG article editor

Check out the control reference to see what you need to add to the init strings to activate de-activate certain features. All this is done in the hak_tinymce tab under extensions. You will have an initialization block for the Body field and for the Excerpt field. In there you have 3 line defining the rows of buttons.

To add the styleselect to the second row you use

theme_advanced_buttons2_add: styleselect,

or you cna just add it to teh list of controls that are already there (some of these new button controls are new when i built the toolbars you had to explicitly tell it what to use)

As far as what CSS to use you can point it to a Stylesheet managed by TXP or one that you create and upload.

You can pretty much configure the whole editor form those two little boxes in the extensions tab. Unless you want to start creating custom themes but you only need to do that if you want want to change the appearance of the buttons in the toolbars. For regular stuff you should have no need for custom themes.

Last edited by hakjoon (2007-04-12 14:04:19)


Shoving is the answer – pusher robot

Offline

#281 2007-04-12 16:00:59

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

When you create a link around the image you can set rel tags and class to allow *box scripts to handle them. In fact lightbox is in the Rel drop down already :)

Where is this mysterious rel tags option? I would like to use it on external links to set rel=“external”

Offline

#282 2007-04-12 16:06:23

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

Re: hak_tinymce WYSIWYG article editor

tinyfly wrote:
Where is this mysterious rel tags option? I would like to use it on external links to set rel=“external”

It’s under the Advanced tab of the hyperlink Dialog. it’s called relationship page to target Although it’s a drop down and I have no clue how one adds options to it.


Shoving is the answer – pusher robot

Offline

#283 2007-04-12 16:17:38

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

It’s under the Advanced tab of the hyperlink Dialog. it’s called relationship page to target

hmm… I don’t have an advanced tab. Using link in the initialization for the toolbar I only get the Insert/edit link tab but nothing else.

Offline

#284 2007-04-12 16:19:30

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

Re: hak_tinymce WYSIWYG article editor

I think you have to use advlink


Shoving is the answer – pusher robot

Offline

#285 2007-04-13 09:16:37

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

Hi, Hakjoon, I have this problem with your plugin – in FF (and Opera too – but TinyMCE doesn’t work well with Opera) – editor is shown after textarea, which is also editable. I use latest plugin 0.7.1 and latest tinymce 2.1.0 from your ZIP file.

Offline

#286 2007-04-13 14:13:49

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

Re: hak_tinymce WYSIWYG article editor

Please try the Examples on the TinyMCE site and see if they do the same thing. That will narrow down if it is a TinyMCE issue or one with my specific implementation.

Also please try it on FF with no extensions and see if the problem is still there.. There have been cases of certain extensions causing weird problems


Shoving is the answer – pusher robot

Offline

#287 2007-04-13 17:42:42

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

I disabled all extension, try default installation of hak_tinymce and all TinyMCE modification but problem remains. Still the same. Textarea is above editor. In Opera is editor at the top and below is textarea. This problem I have aprox. 3 months but I didn’t need to solve it. But know I want. So I guess there must be some little mistake in integration tinymce in TXP. I think this problem is running from version 2.0.3 of TinyMCE.

Offline

#288 2007-04-13 17:46:19

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

Re: hak_tinymce WYSIWYG article editor

Opera support in TinyMCE is pretty experimental. I have no idea how it behaves in it.

What happens in the TinyMCE examples page?


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB