Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1111 2013-05-21 11:59:54

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

Re: hak_tinymce WYSIWYG article editor

Have you tried changing the encoding to raw? I don’t really have any experience with Tinymce and RTL UTF-8 languages. The TinyMCE forum is probably a good place to as too.


Shoving is the answer – pusher robot

Offline

#1112 2013-06-10 12:30:54

alivato
Member
Registered: 2011-03-31
Posts: 152

Re: hak_tinymce WYSIWYG article editor

How to add or change styles?

where?

Offline

#1113 2013-06-10 13:54:38

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: hak_tinymce WYSIWYG article editor

alivato wrote:

where?

http://your-domain/textpattern/tiny_mce/themes/advanced/skins/default/ui.css
line117


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#1114 2013-06-10 14:21:08

alivato
Member
Registered: 2011-03-31
Posts: 152

Re: hak_tinymce WYSIWYG article editor

uli wrote:

alivato wrote:

where?

http://your-domain/textpattern/tiny_mce/themes/advanced/skins/default/ui.css
line117

—————————————

Thanks for the reply.

I still could not

How to add a p tag with the class title

p.title

it’s just a tag p. How to add a class to it

.defaultSkin .mce_p span.mceText {}

Last edited by alivato (2013-06-10 14:24:05)

Offline

#1115 2013-06-10 14:44:35

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: hak_tinymce WYSIWYG article editor

Ah, sorry, you want to edit the menu, not how it’s displayed.

As the only occurrence of “Address” is in
/Users/Uli/Sites/txp454/textpattern/tiny_mce/themes/advanced/langs/en.js

Edit: Oh, that was just the result of a case sensitive search. Sorry, can’t help you :]

Last edited by uli (2013-06-10 14:49:49)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#1116 2013-06-10 15:12:59

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

Re: hak_tinymce WYSIWYG article editor

I think you want


Shoving is the answer – pusher robot

Offline

#1117 2013-06-10 15:41:32

alivato
Member
Registered: 2011-03-31
Posts: 152

Re: hak_tinymce WYSIWYG article editor

(( I do not understand where it is necessary paste

tinymce.init({
    ...
    style_formats : [
        {title : 'Bold text', inline : 'b'},
        {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
        {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
        {title : 'Example 1', inline : 'span', classes : 'example1'},
        {title : 'Example 2', inline : 'span', classes : 'example2'},
        {title : 'Table styles'},
        {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
    ]
});

Offline

#1118 2013-06-10 15:46:05

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

Re: hak_tinymce WYSIWYG article editor

Put it in the initialization box in the settings. Add it to what’s already there.


Shoving is the answer – pusher robot

Offline

#1119 2013-06-10 15:51:12

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: hak_tinymce WYSIWYG article editor

hi hak,

any interestingin bumping this bad-boy for tinyMCE v4?

Offline

#1120 2013-06-10 16:03:24

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

Re: hak_tinymce WYSIWYG article editor

Have you tried it with v4 by any chance? Any issues?


Shoving is the answer – pusher robot

Offline

#1121 2013-06-10 16:43:00

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

Re: hak_tinymce WYSIWYG article editor

@alivato: I accidentally gave you links to the Version 4 configuration options, these are the 3.x ones.


Shoving is the answer – pusher robot

Offline

#1122 2013-06-10 16:45:05

alivato
Member
Registered: 2011-03-31
Posts: 152

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Put it in the initialization box in the settings. Add it to what’s already there.

Where are these settings: in the admin panel or in some file?

Offline

#1123 2013-06-10 17:19:17

alivato
Member
Registered: 2011-03-31
Posts: 152

Re: hak_tinymce WYSIWYG article editor

I need to become so

But I do not understand what it needs to do.

Last edited by alivato (2013-06-10 17:23:28)

Offline

#1124 2013-06-10 18:08:49

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

Re: hak_tinymce WYSIWYG article editor

It goes in the Admin. I’m confused as to what the right setting is now because we use style_format with 3.x and everything works. This is what we have.

style_formats: [
		{title :'Paragraph', block: 'p'},
		{title :'Subhead', block: 'h2'},
		{title :'Sub-subhead', block: 'h3'},
		{title :'Credit / Caption', block:'p', classes: 'caption'}
	],

You might want to look into content_css to make it look like what you want.


Shoving is the answer – pusher robot

Offline

#1125 2013-07-16 23:52:46

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: hak_tinymce WYSIWYG article editor

I just tried to use TinyMCE 4 with this plugin. Thought I was going to get it to work after changing some paths and getting rid of all the code related to the compressor, etc. However, version 4 sets the visibility to hidden for <textarea id=“body” …> and creates lots of new divs for the editor that include style prefixes like “mce_12- body” Definitely over my head, but seems pretty clear it isn’t playing nice with the TXP write tab/page. Going back to TinyMCE version 3.x with hak_tinymce.

TinyMCE 4 does seem to work fine when the selector is used on textareas that aren’t on the Write page in the Admin area: http://www.photonomad.com/images/hak_tinymce_test.png

Last edited by photonomad (2013-07-17 00:00:05)

Offline

Board footer

Powered by FluxBB