Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#193 2006-11-03 02:31:42

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

Re: hak_tinymce WYSIWYG article editor

I actually have a callback function I developed at my old job that takes care of this. I’ve been meaning to paste it up here but keep forgetting. Let me pull it out of Subversion.

Edit: Let me take that back it’s not quite a callback function yet but I got most of the kinks out of it for something else, so it should be easy to convert.

Last edited by hakjoon (2006-11-03 02:34:30)


Shoving is the answer – pusher robot

Offline

#194 2006-11-03 03:21:17

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

Re: hak_tinymce WYSIWYG article editor

Thanks Hak, you d man.

Offline

#195 2006-11-03 03:30:52

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

Re: hak_tinymce WYSIWYG article editor

Alright I did actually have it.

Insert this function in the “Callback Functions” area in the admin.

I can’t get the forum to properly escape my javascript so i just posted this up on my site.

EDIT: I’m removing the article until I get some issues straightened out.

Last edited by hakjoon (2006-11-03 15:09:33)


Shoving is the answer – pusher robot

Offline

#196 2006-11-03 05:06:09

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

Re: hak_tinymce WYSIWYG article editor

Hak

Can’t for the life of me get the callback to work. Javascript error says “trim is not defined”

Offline

#197 2006-11-03 10:59:02

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 535

Re: hak_tinymce WYSIWYG article editor

I must be doing something wrong. I pasted the save_callback:“mceTagWrap”, into the Initialization areas for articles and excerpts and then added the mceTagWrap function code to the Callback functions area.

Now whenever I create a new article or edit an article all changes are wiped when I save it.

Offline

#198 2006-11-03 14:47:16

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

Re: hak_tinymce WYSIWYG article editor

Oh shoot! right I had to write trim(). It’s not a native function. One minute.


Shoving is the answer – pusher robot

Offline

#199 2006-11-03 15:05:04

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

Re: hak_tinymce WYSIWYG article editor

Hold there are some issues with the callback saving also for some reason iit’s stripping half of teh function I need to look into that.


Shoving is the answer – pusher robot

Offline

#200 2006-11-03 15:51:32

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

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Hold there are some issues with the callback saving also for some reason iit’s stripping half of teh function I need to look into that.

Yeah, I noticed it was doing this so I used phpmyadmin to put the function directly into the DB. FYI.

-Cheers

Offline

#201 2006-11-03 16:04:02

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

Re: hak_tinymce WYSIWYG article editor

Actually, that got me thinking… would there be any way to make a init function that simply selects paragraph from the popup on load? Might be simpler…

-Just a thought.

Offline

#202 2006-11-03 17:24:59

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

Re: hak_tinymce WYSIWYG article editor

I haven’t tried affecting the select itself. Not sure if that will catch or not. They are working on an update for TinyMCE that will check for an initial block so this hopefully will go away in a future release.

In the meantime, 0.6.3 and an updated Paragraph wrap callback for TinyMCE which actually has a slightly better function, which will catch blocks opening and ending with open tags.

0.6.3 also updates the toggle editor link to fit better with 4.0.4, not sure how it will look on 4.0.3. If someone really needs one for 4.0.3 let me know. Although you should all upgrade


Shoving is the answer – pusher robot

Offline

#203 2006-11-03 17:54:30

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

Re: hak_tinymce WYSIWYG article editor

Thanks Hak. Mad props.

Worksa likea charm.

Offline

#204 2006-11-28 20:16:29

LeeUmm
Member
From: Hamilton, Ontario
Registered: 2005-04-22
Posts: 91
Website

Re: hak_tinymce WYSIWYG article editor

Just wondering what the status on having a txplink link tool added to allow file downloads is?

Or any new features/versions coming up.

Offline

Board footer

Powered by FluxBB