Textpattern Forum

You are not logged in. Register | Login | Help

#1021 2012-05-04 15:26:16

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 346

Re: hak_tinymce WYSIWYG article editor

I’d like to know how apply this plugin in an especific textarea created with glz_custom_fields.
Is it possible? I use “custom-12” for this textarea element.
Does anyone know how to do ?
Thanks a lot

Last edited by gfdesign (2012-05-04 15:27:26)

Offline

#1022 2012-05-04 15:40:09

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: hak_tinymce WYSIWYG article editor

I can think of one way to do it. It’s kind of a hack but it works. You won’t be able to toggle the editors on and off by doing this, they will all be on and they will all have to use the same config. I haven’t tried this so I am not 100% sure this will work.

  1. turn off the editor for both the body and excerpt
  2. Copy your initialization code
  3. In the callbacks box enter this code
tinyMCE.init({
<your initialization>
document_base_url:"http://yourbase url",
mode:"textareas"
});

Alternatively if you don’t want all textareas you can do:

tinyMCE.init({
<your initialization>
document_base_url:"http://yourbase url",
mode:"exact",
elements:"element_id1, element_id2, etc"
});

I’d like to make this easier to do but it requires rewriting most of the plugin.


Shoving is the answer – pusher robot

Offline

#1023 2012-05-04 16:23:04

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 346

Re: hak_tinymce WYSIWYG article editor

It has been replied here and it has worked for me.
Thanks anyway. I appreciate it.

Offline

#1024 2012-05-04 16:47:28

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: hak_tinymce WYSIWYG article editor

heh It’s sad that I forgot my own previous solution.


Shoving is the answer – pusher robot

Offline

#1025 2012-07-08 20:24:08

lieselgoregunum
New Member
Registered: 2012-06-11
Posts: 4

Re: hak_tinymce WYSIWYG article editor

Hello..
This distribution of tinymce have low features. Is there a possibility to became the full version for textpattern? What i need ist the function that add a button to make a div-box that i can choose css informations for. But more importantly: The pull down menu for h1-h6 etc. have in the “normal” distibution the function that you can choose there all of CSS .class. If you insert some CSS class than this class name is in this pull down menu and you can take this for an element. Is there a way ti became this. If not – how could i solve this problem. I have much class styles which i need for the content.
Ok sorry for my english!
Thank you for support
Greetings

Offline

#1026 2012-07-09 20:55:13

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,058
Website

Re: hak_tinymce WYSIWYG article editor

I believe you can do everything you want by using the initialization settings in the Extensions Tab for tinymce

Offline

#1027 2012-07-10 06:40:03

lieselgoregunum
New Member
Registered: 2012-06-11
Posts: 4

Re: hak_tinymce WYSIWYG article editor

On this idea i am not come. I try Textpattern not long. Thanks a lot. I found the designations for elements on the link documentation for tinymce http://www.tinymce.com/wiki.php/Buttons/controls

Now the problem is that tinymce dont know where my CSS file is. I have the plugin rvm_css to save the file out of database. Ok i think i found a solution by myself.

Offline

#1028 2012-07-10 19:14:36

lieselgoregunum
New Member
Registered: 2012-06-11
Posts: 4

Re: hak_tinymce WYSIWYG article editor

I look and look but i found no solution. Is there a way that tinymce take the .class styles from my CSS file? I have the CSS file in root /css/default.css (with the plugin rvm_css). It does not matter if the .class styles in “Format” oder “Styles” pull down menue.

Offline

#1029 2012-07-10 20:05:31

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: hak_tinymce WYSIWYG article editor

I’m not following exactly what you are trying to do but look at these configuration options that deal with CSS and the editor. I think you want content_css or style_formats


Shoving is the answer – pusher robot

Offline

#1030 2012-07-10 22:57:28

lieselgoregunum
New Member
Registered: 2012-06-11
Posts: 4

Re: hak_tinymce WYSIWYG article editor

Ah i must write the options for the tinyMCE.init into the plugins page of tinymce .. i feel a light on. I looked for a other possibility.. But i dont know what to. ;-)

Thanks a lot. It works fine (content_css).

Last edited by lieselgoregunum (2012-07-10 23:12:15)

Offline

Board footer

Powered by FluxBB