Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#751 2010-06-11 19:01:12

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

Re: hak_tinymce WYSIWYG article editor

Yeah the problem is that the widget can be in various places of the hierarchy so I can’t just assume it’s at the same level as index.php.

I thought the tinyMCE property I was using actually used the current domain as base but something seems to be off. I’ll have to investigate on an actual install which I don’t have access to ATM.


Shoving is the answer – pusher robot

Offline

#752 2010-06-11 19:12:08

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

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Yeah the problem is that the widget can be in various places of the hierarchy so I can’t just assume it’s at the same level as index.php.

Ok. Was just a try ;-)

Offline

#753 2010-06-11 19:30:17

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

Re: hak_tinymce WYSIWYG article editor

Actually made me think that the rewrite rule might catch a call to index.php in a random location, but then it wouldn’t work if you aren’t using clean urls.

I guess I’m just not sure why that part of the url is getting capitalized, and why it’s treating it as a different site that you are not authenticated for.


Shoving is the answer – pusher robot

Offline

#754 2010-06-12 11:04:47

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

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

….I guess I’m just not sure why that part of the url is getting capitalized, and why it’s treating it as a different site that you are not authenticated for.

Oops! sorry I didn’t even notice the capitalization.
I fear I said something completely nonsensical ;-)

Last edited by redbot (2010-06-12 11:05:31)

Offline

#755 2010-06-14 10:30:58

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

Re: hak_tinymce WYSIWYG article editor

Fixed.

In the diagnostic, I’d the error message : Site URL preference might be incorrect:

But in the preferences, the address seemed good, I had my css, my pictures.
So I rewrite the address and it’s ok, everything is back to normal.

I tried to reproduce the bug (maybe one extra space in the URL in the beginning, at the end) but I failed.

Unable to reproduce the bug.

Thank you for your time.
Sometimes we have the solution before us, but we remain blind.

Offline

#756 2010-06-14 20:11:47

where_is_will
New Member
From: UK
Registered: 2010-02-23
Posts: 7

Re: hak_tinymce WYSIWYG article editor

Hi Patrick,

Sorry to ask, but I am having the same image issue as described on pages 72/73 – everything works except when I select the image button it just hangs. I have tried index.php?event=hak_txpcatselect and am seeing the category dropdown, and the image list on index.php?event=hak_txpimage. I have tried with the www. and without in the preferences and there’s been no change, it just tries to load the images but nothing is showing.

I’ve done a clean install but still no luck. Is there something else obvious I should be looking for?

Thanks in advance.

Will

Offline

#757 2010-06-14 20:17:45

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

Re: hak_tinymce WYSIWYG article editor

Do you get the popup? If so check in firebug to see if anything is going wrong with the ajax call.


Shoving is the answer – pusher robot

Offline

#758 2010-06-14 20:45:37

where_is_will
New Member
From: UK
Registered: 2010-02-23
Posts: 7

Re: hak_tinymce WYSIWYG article editor

Hi,

Thanks for the reply. Pop is there just fine, advanced tabs are there etc. I am getting an error on TxpImageDialog which is probably the issue. I’ll need to change the url it uses – from “textpattern” to “editor”. Is that in the plugin or tiny_mce?

Thanks for the help so far.

Cheers,

Will

Last edited by where_is_will (2010-06-14 20:48:25)

Offline

#759 2010-06-14 21:01:02

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

Re: hak_tinymce WYSIWYG article editor

That’s in the image plugin so it’s /tiny_mce/plugins/txpimage/js/txpimage.js

This is the line in question I think. I’ll need to see about abstracting that out.


Shoving is the answer – pusher robot

Offline

#760 2010-06-14 21:17:12

where_is_will
New Member
From: UK
Registered: 2010-02-23
Posts: 7

Re: hak_tinymce WYSIWYG article editor

Perfect – that’s got it. Not something that I would have needed to think about if I hadn’t tried to be clever and give them an memorable URL! Thanks for the super-quick fix.

Offline

#761 2010-06-25 15:27:16

simoin
Member
From: Ireland
Registered: 2009-02-10
Posts: 50
Website

Re: hak_tinymce WYSIWYG article editor

Is there anyway of making hak_tinymce output an absolute path to an image rather than a relative path

Offline

#762 2010-06-25 15:32:36

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

Re: hak_tinymce WYSIWYG article editor

All you ever wanted to know about tinyMCE and paths

document_base_url is automatically set you Site URL value in preferences.


Shoving is the answer – pusher robot

Offline

#763 2010-06-25 15:37:27

simoin
Member
From: Ireland
Registered: 2009-02-10
Posts: 50
Website

Re: hak_tinymce WYSIWYG article editor

Thanks for the quick reply, I’ll have a look at that.

Offline

#764 2010-06-25 15:41:35

simoin
Member
From: Ireland
Registered: 2009-02-10
Posts: 50
Website

Re: hak_tinymce WYSIWYG article editor

Ok, I see here it says, to all relative URLs to absolute URLs,

relative_urls : false, remove_script_host : true, document_base_url : "http://www.site.com/path1/"

where do I make these changes?

Offline

#765 2010-06-25 15:51:01

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

Re: hak_tinymce WYSIWYG article editor

In the boxes where you specify the inits under Extensions -> hak_tinymce


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB