Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#145 2006-07-11 12:27:32

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

Re: hak_tinymce WYSIWYG article editor

Skubidu wrote:
Patrick, this update is really cool!
I like your image browser: Would it be possible to have an “Insert as article image” button, too?

Nils, not sure how involved that would be to implement since it would have to talk back to the opening page in a different way (not through TinyMCE) but it seems doable.

I probably just need to get a little more acquainted with TinyMCE.


Shoving is the answer – pusher robot

Offline

#146 2006-07-11 12:29:48

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: hak_tinymce WYSIWYG article editor

Hi Patrick!

There is a problem with the image path: Everythings looks fine in the admin interface, but on the live page the image is inserted with a relative path. It should be an absolute one otherwise you can’t see the image in an article.

Nils

Offline

#147 2006-07-11 13:10:52

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

Re: hak_tinymce WYSIWYG article editor

Nils,

Do’h I only tested the relative paths on the home page.

Add this to your initializations and you should be in business.

bc..
relative_urls : false,
remove_script_host : false,

If anyone wants different URL schemes please check out this TinyMCE FAQ on the URL rewriting options. You should be able to get whatever you want out of it.

document_base_url is automatically setup to be your Site URL so you shouldn’t have to worry about that element.


Shoving is the answer – pusher robot

Offline

#148 2006-07-11 14:04:38

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: hak_tinymce WYSIWYG article editor

Works like a charm! Thanks!

Offline

#149 2006-07-11 14:06:59

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

So, I use TXP 4.0.3 and here is the screen of mistake on my localhost:

On website doesn’t appear same mistake but in Javasript console in Firefox was this:

So even on website is not selected image insert into editor :( because of javascript error. I try to disable all other plugins, but nothing happen…

Last edited by beztak (2006-07-11 14:08:47)

Offline

#150 2006-07-11 14:37:05

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

Re: hak_tinymce WYSIWYG article editor

Aha, that’s the old iBrowser plugin. That one doesn’t work anymore. They changed a bunch of stuff between TinyMCE 2.0.2 and 2.0.5 which broke it and it’s no longer maintained.

There is a new one now, here are the initialization changes to enable it.

In the plugins parameter remove ibrowser and replace it with txpimage

In the toolbar buttons remove ibrowser and replace it with image The default location is in theme_advanced_buttons2

That should let you see the new image tool.


Shoving is the answer – pusher robot

Offline

#151 2006-07-11 16:08:50

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

Oh, I was so excite that I’m not read what’s really new in your crazy updates and I hurry to install it :-)

But… Now everything works. But only with images that are uploaded via TXP image upload and it doesn’t search for the files in the images root. Usually people that work in TXP admin in certain projects upload images only via FTP (due to lot of images). So question is easy, how to browse FTP directory…

Last edited by beztak (2006-07-11 16:10:07)

Offline

#152 2006-07-11 16:58:56

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

Re: hak_tinymce WYSIWYG article editor

No way right now. That’s something I want to add, but I wasn’t sure how to implement it. I had to set a cut off at some point or else this thing was never going to go out.

Would it be necessary to browse both the TXP categories and the file system or would it acceptable to do one or the other?


Shoving is the answer – pusher robot

Offline

#153 2006-07-11 17:02:54

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

Re: hak_tinymce WYSIWYG article editor

Another option also is to use something like tinyMCPUK which has a file system based image browser. It should work fine with the integration since the distributed TinyMCE is un-modified.


Shoving is the answer – pusher robot

Offline

#154 2006-07-11 17:25:39

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Would it be necessary to browse both the TXP categories and the file system or would it acceptable to do one or the other?

I think that more acceptable would be to do one or the other. In fact I never use TXP image upload function.

But your plugin works well and it’s not big handicap because I think that exist some plugin to upload a lot of images in one step. I will try it.

Offline

#155 2006-07-12 18:35:24

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: hak_tinymce WYSIWYG article editor

I test your new plugin on website in one my project and when somebody log in TXP and isn’t publisher (e.g. is staff writer) tinymce didn’t load and IE show some JS error. It’s my fault again?

Offline

#156 2006-07-12 20:56:49

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

Re: hak_tinymce WYSIWYG article editor

That’s probably my fault. I just copied the permissions from upm_img_popper maybe I’m missing something.


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB