Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#511 2008-11-13 17:19:01

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: hak_tinymce WYSIWYG article editor

The extension tab is not visible from the plugin tab. Could it be the problem?

Offline

#512 2008-11-13 17:39:36

jedik
New Member
Registered: 2008-11-12
Posts: 4

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

hak_tinymce shouldn’t require setting privileges. Do you have “Use plugins?” and “Use admin-side plugins?” turned on in Preferences -> Advanced -> Publish ?

Yes, I do :(

Offline

#513 2008-11-13 17:42:42

jedik
New Member
Registered: 2008-11-12
Posts: 4

Re: hak_tinymce WYSIWYG article editor

Zanza wrote:

The extension tab is not visible from the plugin tab. Could it be the problem?

I don’t know if I understand you well, but where else I can find Extension tab?

PS: sorry for maybe silly question, but it’s my first installed plugin.

Offline

#514 2008-11-13 18:04:06

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

Re: hak_tinymce WYSIWYG article editor

Plugins do not run when you are in the plugin tab. Go to another tab and you should see it on the top row.


Shoving is the answer – pusher robot

Offline

#515 2008-11-13 21:35:30

jedik
New Member
Registered: 2008-11-12
Posts: 4

Re: hak_tinymce WYSIWYG article editor

You won’t believe me. I forgot to activate the plugin and that was the problem. Shame on me, such a stupid negligence. Of course now it works.

Last edited by jedik (2008-11-13 21:36:10)

Offline

#516 2008-12-21 02:08:16

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: hak_tinymce WYSIWYG article editor

how do i set it up so that half my article uses a txp tag, and the other half needs tinymce?

also to make things more confusing, i have a ton of articles that were made using the normal textile.

Offline

#517 2008-12-22 02:16:09

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

Re: hak_tinymce WYSIWYG article editor

@txp tags
You can’t really do that. The colon in the txp tags doesn’t play nice with tinyMCE. I’ve been thinking of doing some sort of plugin that would allow you to insert txp:tags in a way that wouldn’t make tinyMCE destroy them but I haven’t come up with something.

@textile
You can turn the editor on for articles that you originally wrote with textile but you will lose all the formatting. I won’t turn it self on automatically though for anything written with textile so you can have a site that uses both methods of input. I have been considering a plugin that would parse your textile content to html if you want to use tinyMCE for articles you originally wrote with textile.

My long term goal would be to make tinyMCE generate textile but I’m still not sure how to do that.


Shoving is the answer – pusher robot

Offline

#518 2008-12-22 02:23:13

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote: @textile You can turn the editor on for articles that you originally wrote with textile but you will lose all the formatting. I won’t turn it self on automatically though for anything written with textile so you can have a site that uses both methods of input. I have been considering a plugin that would parse your textile content to html if you want to use tinyMCE for articles you originally wrote with textile. My long term goal would be to make tinyMCE generate textile but I’m still not sure how to do that.

ok in the meantime i have my txp set to “leave text untouched” because i think you can’t use haktinymce with that set to textile. and then to do the textile in my post, i ended up just using forms instead cause that seemed like the most headache-free way of posting my flash player. so all-in-all i had to work around it but i’m better off in the longrun now.

your plugin is amazing, yet another one that should be included in the core

Offline

#519 2009-01-28 23:35:15

curiouz
Member
Registered: 2006-06-20
Posts: 56

Re: hak_tinymce WYSIWYG article editor

Is it possible to automatically have TinyMCE initialized? Without having to “toggle” the editor for the article?

Offline

#520 2009-01-29 03:42:40

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

Re: hak_tinymce WYSIWYG article editor

Set your default to “leave text untouched” it will initialize automatically then.


Shoving is the answer – pusher robot

Offline

#521 2009-02-15 17:01:36

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

Re: hak_tinymce WYSIWYG article editor

Since hak_tinymce still runs on the 2.x series of TinyMCE, it’s not yet possible to use the handy element_format setting, which tells the parser to construct HTML 4.01 tags instead of XHTML tags.

But you can easily achieve the same by defining the following callback function in the preferences tab of hak_tinymce (I just copied the replace pattern from the 3.x source code):

function html401(element_id, html, body) {
	html = html.replace(/<([^>]+) \/>/g, '<$1>');
	return html;
}

Also, reference the callback in your initalization of the article and/or body editor:

save_callback : "html401",

That’s it, the parser will now construct valid HTML 4.01 elements!


Kensington TXP powered rock

Offline

#522 2009-02-17 12:24:36

fyankai
Member
Registered: 2008-07-07
Posts: 22

Re: hak_tinymce WYSIWYG article editor

Am loving this plugin, but want to find a good way for clients to link to files without having to go into the HTML and manually insert a link. So it occurred to me that a very simple plugin would help here:

If textpattern’s Files list could have another column, displaying the URL of each file (perhaps next to the Tags column – or maybe just displayed under the name if space is too short), the user would just have to copy that URL, and insert it into the link popup window. At the moment they can get it by building an XHTML tag and copying just the URL, but that’s pretty awkward for non-techie clients.

I’ve searched around but can’t find a plugin that will do this. Would anyone know how to make this happen? I’m guessing it’d be a really small plugin since it’s just adding one line of HTML to the Files list… Any ideas? Or anyone got a better way to let clients link to files while still using hak_tinymce?

Offline

#523 2009-02-17 12:45:28

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: hak_tinymce WYSIWYG article editor

For a temporarary workaround you can tell your clients to hover to “download” > right-click > copy link.

Offline

#524 2009-02-17 12:56:07

fyankai
Member
Registered: 2008-07-07
Posts: 22

Re: hak_tinymce WYSIWYG article editor

Hi Redbot. That’s true – will use that for now, but if there’s a way to have it permanently displayed that’d make it easier for clients to remember how to do it. The fact that the URL is right there in the Download link suggests that it should be really easy to make it display below it or elsewhere in the Files list, but my own PHP is pretty ropey!

Offline

#525 2009-02-17 14:54:40

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: hak_tinymce WYSIWYG article editor

Yes, I must admit this is a fairly common request. I think it could be done with some jquery… no promises but should I manage to do it when I have a bit of free time I’ll post here

Offline

Board footer

Powered by FluxBB