Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#736 2010-04-16 02:14:49

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

Re: hak_tinymce WYSIWYG article editor

Change the “false” to false (no quotes) the new version does a type comparison (===) so “false” is actually true.


Shoving is the answer – pusher robot

Offline

#737 2010-04-16 03:10:44

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: hak_tinymce WYSIWYG article editor

Perfect – thanks Patrick
is this the same for all my options? No quotes for any of them?

Offline

#738 2010-04-16 12:02:43

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

Re: hak_tinymce WYSIWYG article editor

Anything that says true or false should not have quotes. It looked like your trues were already right. Although it’s only really an issue with false because “true” is true.


Shoving is the answer – pusher robot

Offline

#739 2010-05-27 00:06:29

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

Re: hak_tinymce WYSIWYG article editor

Folks, I just uploaded version 0.9.9.1 which takes care of a potential vulnerability Bryan Pack pointed out to me.

Please update.

Last edited by hakjoon (2010-05-27 00:06:50)


Shoving is the answer – pusher robot

Offline

#740 2010-05-27 10:29:38

Hennie
Member
From: Nederland
Registered: 2009-02-06
Posts: 18
Website

Re: hak_tinymce WYSIWYG article editor

Dear Patrick, do I have to re-upload the files in /tiny_mce too? I have a lot of sites to modify :-(

It’s, by the way, an awesome plugin.

Offline

#741 2010-05-27 12:01:45

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

Re: hak_tinymce WYSIWYG article editor

No need to reupload all the files just reinstall the plugin itself. Also since the call that’s vulnerable requires priviledges it’s not a public vulnerability, but you know better safe than sorry.


Shoving is the answer – pusher robot

Offline

#742 2010-05-31 08:07:18

fantasmo
Member
Registered: 2010-05-05
Posts: 40

Re: hak_tinymce WYSIWYG article editor

Hi,
is there a way to use txp:tags INSIDE the tinymce-editor?
Because if I type in a txp:tag (in my case to insert a smd_gallery) and also want to add a little bit of text via tinymce, my txp:tag gets erased when turning on tinymce…or another case is, tinymce is turned on automatically in the moment i press publish.

Is there a way to insert txp:tags into tinymce?

I also asked that question in a smd_gallery thread ( http://forum.textpattern.com/viewtopic.php?id=33012 ) but didn’t get a reponse yet.

EDIT: Or another idea… is there a way to add a “rel attribute” to the images I insert via tinymce? I know i can add a class, but it would be perfect to also add a “rel attribute” to make it possible to use lightbox gallery.

Last edited by fantasmo (2010-05-31 08:23:44)

Offline

#743 2010-06-01 00:35:55

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

Re: hak_tinymce WYSIWYG article editor

fantasmo: Look at this series of posts for approaches to allow txp:tags.

From what I remember of lightbox (it’s been awhile) I think the rel need to be in the href (I don’t believe rel is not a valid img attribute). You can always insert the image and hyperlink it with the hyperlink widget.


Shoving is the answer – pusher robot

Offline

#744 2010-06-01 10:03:01

fantasmo
Member
Registered: 2010-05-05
Posts: 40

Re: hak_tinymce WYSIWYG article editor

Hi,

ok, I realized it seems not as easy i thought to just insert an image with the image button, say “use this one as thumb, this one as full size image, and this word should be the ‘rel-Categoryname’ inside th <a>-Tag”?

I tried that thing with:
1. insert an image, then go to the hyperlink-tool and type in the URL for the full size image. (really annoying to TYPE the url for full size image)
2. now i missed the opportunity to give the link a “rel-attribute” (thought it would be possible to easyly add a little input field for that via “admin > extensions > tinymce initalization”??)
3. alternatively i switched now on “advlink” which i actually don’t like because those many options confuse me little bit I went then to “advanced” chose “lightbox” from the “rel-pulldown” but when i save and finish, my link is not a link and when i go back into the hyperlink tool, the pulldownmenue the “lightbox” in the “rel-pulldown” is not there anymore, like i had never chose it.

Offline

#745 2010-06-01 18:03:13

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

Re: hak_tinymce WYSIWYG article editor

when editing the link make sure you are selecting the a element and not the img element. At the bottom of the editor there will be a Path: line that should say something like p > a > img. Changes are when you click the image its selecting the img element so when you click the hyperlink button it thinks you are inserting a new link. You can click on the a to specifically select the a element.


Shoving is the answer – pusher robot

Offline

#746 2010-06-11 12:37:50

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: hak_tinymce WYSIWYG article editor

Hello,

I had a custom version of this plugin (only bold, italic, align, etc.) and not button image.
I wanted to add this functionality (image), but this does not work.

When I opened the “pop-up images”, instead of having the “txp images”, I have the login form :

I uninstalled the plugin, tables, deleted the folder “tiny_mce. I made a new clean install of plugin. But I’ve the same problem.

Offline

#747 2010-06-11 14:47:10

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

Re: hak_tinymce WYSIWYG article editor

Try going to /textpattern/index.php?event=hak_txpimage and see what happens. This seems like you aren’t authenticated to the ajax end point for some reason.

Also if you have firebug see what URL the ajax call for the images is going to and compare it with the one you are using.


Shoving is the answer – pusher robot

Offline

#748 2010-06-11 15:40:06

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: hak_tinymce WYSIWYG article editor

I check

Url http://localhost/bemh/trunk/textpattern/index.php?event=hak_txpimage is ok, I’m a list of images

but “image button” sent to http://localhost/BEMH/trunk/textpattern/index.php?event=hak_txpimage&src=&c=

Offline

#749 2010-06-11 17:53:35

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

Re: hak_tinymce WYSIWYG article editor

What happens if you go to http://localhost/BEMH/trunk/textpattern/index.php?event=hak_txpimage does it prompt you to log in?

Somehow the ajax is reaching a different TXP that does not think you are logged in. Not sure what would cause that.

Are you using a checkout of the development trunk? If so could you try in a 4.2.0 install in case it’s something that has changed in trunk.

Last edited by hakjoon (2010-06-11 17:55:07)


Shoving is the answer – pusher robot

Offline

#750 2010-06-11 18:43:18

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

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Somehow the ajax is reaching a different TXP that does not think you are logged in. Not sure what would cause that.

Hi,
I experienced a similar problem when writing my latest plugin.
In my case it was related to iframes but maybe it can work for you.
Instead of http://localhost/bemh/trunk/textpattern/index.php?event=hak_txpimage
try to use index.php?event=hak_txpimage so it will not think is another domain.

Offline

Board footer

Powered by FluxBB