Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#721 2010-02-05 15:49:37

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: hak_tinymce WYSIWYG article editor

The first link, nothing happens, the second, I get a list of the images…

Offline

#722 2010-02-05 18:03:01

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

Re: hak_tinymce WYSIWYG article editor

weird you should get a drop down with image categories for the first one seems strange that one works and not the other. As far the image dialog goes make sure that you are accessing the admin interface from the exact same domain set in Admin -> Preferences -> Site Url

Javascript is very particular about ajax across domains which might be why the image list is not loading in the image dialog. I had this dealt with in the old plugin but apparently I broke it in the new one.

Still confused as to why the first url is giving you nothing though.


Shoving is the answer – pusher robot

Offline

#723 2010-02-05 18:23:26

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: hak_tinymce WYSIWYG article editor

Thank you very much hakjoon….. It was a domain problem. under admin, it was bla.com, not www.bla.com.
Still not sure why the first link didnt work, but its working within tinymce now…
Thanks again..

Offline

#724 2010-02-07 07:37:14

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

Thanks. 0.9.9 is the latest. I was waiting to make sure it fixed the issues with php4 before making it the official one, and forgot to update everything.

One thing that I always change in the source code is the sorting of the images. I always change it so that the newest images always appear at the start of the image list. This makes more sense to me.

I always start by uploading images before writing the blog post. With the current code I have to sort through all the images to find the ones that I uploaded.

Any chance you could fix this in your code?

Offline

#725 2010-02-09 01:42:30

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

Re: hak_tinymce WYSIWYG article editor

I can definitely do that. It seems like a sensible default to me.

The plan is to redo that widget so it can handle articles, files etc and use it for hyper linking too. Time unfortunatel continues to be scarce with the baby.


Shoving is the answer – pusher robot

Offline

#726 2010-02-11 13:35:22

joel
Member
Registered: 2004-11-26
Posts: 162

Re: hak_tinymce WYSIWYG article editor

How do I change the width of the content textarea?
I’ve changed the css for the admin theme, but the width only changes when I toggle the Editor off.

Thanks!

Offline

#727 2010-02-11 20:13:49

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

Re: hak_tinymce WYSIWYG article editor

It’s supposed to use the width of the textarea by default. If that is not working you can look at the width initialization parameter


Shoving is the answer – pusher robot

Offline

#728 2010-02-15 02:02:13

linkstate
New Member
Registered: 2009-12-09
Posts: 2

Re: hak_tinymce WYSIWYG article editor

Is there a way you could implement showing images like in tinyBrowser plugin for TimyMCE? I know uploading and editing should be on txp side but the way you could list (filter, sort) images is much better in that plugin if you have lot of images.

tinyBrowser

Screenshot

Thanks, I appreciate your work.

Offline

#729 2010-02-15 13:09:18

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

Re: hak_tinymce WYSIWYG article editor

That’s kind of what I had in mind. I’ve never been really happy with the current image picker, but it was just meant to slightly engage the one that came with the original version of the plugin that Michelle created (mic_tinymce)

I might investigate how hard it would be to just integrate tinybrowser.


Shoving is the answer – pusher robot

Offline

#730 2010-02-16 09:27:29

joel
Member
Registered: 2004-11-26
Posts: 162

Re: hak_tinymce WYSIWYG article editor

I’m trying to implement the Paste plugin. Cant get it to work though.
Here is the code from the moxiecode wiki:

tinyMCE.init({ theme : “advanced”, mode : “textareas”, plugins : “paste”, theme_advanced_buttons3_add : “pastetext,pasteword,selectall”, paste_auto_cleanup_on_paste : true, paste_preprocess : function(pl, o) { // Content string containing the HTML from the clipboard alert(o.content); }, paste_postprocess : function(pl, o) { // Content DOM node containing the DOM structure of the clipboard alert(o.node.innerHTML); }
});

Where do I put this?

Thanks!

Offline

#731 2010-02-16 12:55:21

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

Re: hak_tinymce WYSIWYG article editor

The text in the initialization textboxes in the hak_tinymce admin tab become the content for tinymce.init so you just need to put it there.


Shoving is the answer – pusher robot

Offline

#732 2010-02-16 23:28:41

joel
Member
Registered: 2004-11-26
Posts: 162

Re: hak_tinymce WYSIWYG article editor

Yes, I figured. But which lines of the code goes where?

Offline

Board footer

Powered by FluxBB