Go to main content

Textpattern CMS support 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: 401

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
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
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: 401

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
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
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
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
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
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
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

#1031 2012-07-15 17:50:29

MyKE
New Member
Registered: 2012-07-15
Posts: 3

Re: hak_tinymce WYSIWYG article editor

God bless you hakjoon! Thank you for this great extension. I am using Textpattern 4.4.1 and it works perfectly! I hope that you will support newer txp versions because I don’t like textile… ;-)

Edit: But I have found one small problem – I type by czech keyboard and every diacritic I type is shown in html by symbols like this: &#353 ;. I don’t know if is this right or no, but browser show it right as “š”, but I want to show it normal way, not like this code. Is it possible?
I have downloaded czech language for tinymce and uploaded to folder. But when i edit in extension language from “en” to “cs”, tiny mce will dissapear from typing article.

theme : "advanced",
language : "cs",
relative_urls : false,
remove_script_host : false,
.
.
.

could you help me how to change language of tinymce? Thanks.

Last edited by MyKE (2012-07-15 19:26:23)

Offline

#1032 2012-07-16 01:07:09

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

Re: hak_tinymce WYSIWYG article editor

The plugin defaults to using numerical entities. If forget exactly why. Wet suggested and it made sense it’s in this thread somewhere. You can change this with the entity_encoding parameter.

I’m not sure why changing the language is making tinymce stop working. The configuration looks fine. Is the language pack in the /langs/ folder? Make sure you don’t have a stray comma or quote somewhere


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB