Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#265 2007-03-08 15:11:31
Re: hak_tinymce WYSIWYG article editor
Cheers Patrick.
I’ll take a read of that article, most helpful – thank you!
I’m glad it is nothing to do with the plugin as that could be a headache if it were. But my next question is: if this is a problem with CSS, then why is it only happening on certain categories and tags? The categories and tag sections are using the same page and code as other categories which are not seemingly displaying this error.
Just a thought.
Offline
#266 2007-03-08 15:18:09
Re: hak_tinymce WYSIWYG article editor
If it’s the expanding box bug then it has to do with the text in the column. IE6 and under improperly expand the container when the contents are wider then the specified width. Firefox will correctly overflow the content outside the container without expanding it.
The result is normally that the combined width of the floats in IE will be greater then 100% of the overall container (browser window) causing the right side to float down (this is sometimes referred to as Float Drop).
In a simple case it’s just a matter of tweaking some widths specifically for IE. If you are dealing with fluid contents or the like it can be a little bit more of a pain.
Shoving is the answer – pusher robot
Offline
#267 2007-03-08 15:28:44
Re: hak_tinymce WYSIWYG article editor
Patrick, once again many thanks for this. Looks like I’ve got a lot of reading to do, and some eViL kludges to sort out.
Offline
#268 2007-03-30 19:41:15
Re: hak_tinymce WYSIWYG article editor
Dear Hakjoon,
I have been a long time user of your wonderful plugin. But I am running into a problem – and I’m not sure if there even is a solution to this – but I thought if anyone would know it would have to be you!
Basically, I develop the client’s websites on a private URL, and when the site has been approved have to move it over to the client’s domain. Naturally using tinymce with absolute URL’s creates a problem because all the images and many links point back to the private URL. I have to go through the site by hand and correct the URL’s. But sometimes on larger sites some URL’s get missed, and this can create ugly problems with Google and other search engine spiders, not to mention just look bad.
Anyway I have tried using relative url’s – and have read the Moxie FAQ and elsewhere in this thread where you have talked about the subject. But the problem is that relative URL’s are relative to the base_url and not relative to the current article as it is configured with mod_rewrite. So if my url writing mode is section/id/title the relative URL of the image would have to be “../../images/x.gif” instead of “images/x.gif” which is how tinymce currently generates it.
So – Is it possible to remedy this in the plugin as it currently exists? Or will I need to do some hacking in order to get this working? Or do you have any advice in general?
Thanks Hakjoon!
y’r pal -rloaderro
Travel Atlas * Org | Start Somewhere
Offline
#269 2007-03-30 19:56:31
Re: hak_tinymce WYSIWYG article editor
rloaderro,
I use the following in the hak_tinymce config:
relative_urls : false,
remove_script_host : true,
This allows the url to be relative to your site root (whatever is set in txp’s preferences ‘Site URL’) instead of your document root. So in your example it would be “/images/x.gif” instead of “images/x.gif”. Then your url writing mode won’t effect your images. Try it out and see if it works for you.
Hakjoon showed me this as the tinyMCE documentation isn’t very clear on the output you get.
Refresh Dallas and other Refreshing Cities.
Offline
#270 2007-03-30 20:09:53
Re: hak_tinymce WYSIWYG article editor
tinyfly wrote:
I use the following in the hak_tinymce config:
Oh man! That was it!! I feel so stupid because I read Hakjoon’s comment where he mentioned this, but saw “relative_urls: false” and figured it didn’t apply to what I was looking for!
Thanks again! Thank you………. for making me feel so stupid! :D
Travel Atlas * Org | Start Somewhere
Offline
#271 2007-04-09 20:19:07
Re: hak_tinymce WYSIWYG article editor
Patrick,
Regarding your paragraph wrap callback function
I ran into the problem that if there was no text in the editor (for instance if you didn’t put any thing in the excerpt area) and saved it would add an empty paragraph.
To fix that I added if (html.length){}
around your if statement and it seems to work fine now.
Refresh Dallas and other Refreshing Cities.
Offline
#272 2007-04-09 20:32:23
Re: hak_tinymce WYSIWYG article editor
Cool I’ll add that to the function. Didn’t think of that scenario.
Shoving is the answer – pusher robot
Offline
#273 2007-04-11 09:42:24
- joel
- Member
- Registered: 2004-11-26
- Posts: 162
Re: hak_tinymce WYSIWYG article editor
First of all, thank you for a wonderful plugin! I works reallly great! My non-tech clients like this since most of them have some experience of using MS Word.
I’ve been reading through this thread in search for some image handling issues. Some of them previously asked though. I’ll ask them again. Hope you don’t mind… ;)
- I really like the idea of upm_image_popper. Is it possible to integrate the basic idea from that?
- How do I insert make pop-up-images via hak_tinymce?
- How do I manage custom-image-tags such as lightbox/litebox/slimbox etc?
- Is it possible to have an article image button (perhaps just in the excerpt field) that inserts full-story-linked images?
Once again, Kudos on your fantastic work!
Thanks in advance! :)
Offline
#274 2007-04-11 15:27:15
Re: hak_tinymce WYSIWYG article editor
joel wrote:
I really like the idea of upm_image_popper. Is it possible to integrate the basic idea from that?
Which part of upm_img_popper in particular are you thinking of? There is an image picker already integrated but I’d be happy to modify it to meet requirements it’s not meeting.
How do I insert make pop-up-images via hak_tinymce?
There is no ‘make popup’ button but if you create a link around an image you have options to create a popup. I’d personally recommend integrating a non-obtrusive script to handle the popups vs having users inserting parameters on their.
I still need to build the link picker. I apologize for the delay on that front I’ve been distracted by other things.
How do I manage custom-image-tags such as lightbox/litebox/slimbox etc?
When you create a link around the image you can set rel tags and class to allow *box scripts to handle them. In fact lightbox is in the Rel drop down already :)
Is it possible to have an article image button (perhaps just in the excerpt field) that inserts full-story-linked images?
I think that would be better handled through your article form then in tinyMCE. Nils has asked for a “Insert as Article Image” option for the image picker, but I have this idea for a completely different interface for article images banging around in my head.
Shoving is the answer – pusher robot
Offline
#275 2007-04-11 17:15:53
- joel
- Member
- Registered: 2004-11-26
- Posts: 162
Re: hak_tinymce WYSIWYG article editor
hakjoon wrote:
Which part of upm_img_popper in particular are you thinking of? There is an image picker already integrated but I’d be happy to modify it to meet requirements it’s not meeting.
In this case I was thinking more about the article image/popups options.
The image picker in tiny_mce is good, but not perfect from a regular clients point of view. Of course every client has its certain needs. Therefore it would be good if the developer easily could hide unnessecary stuff from the interface – just like in the text-editor prefs. Some functions like for instance the alignment and margin part could perhaps be controlled with css instead of html?
There is no ‘make popup’ button but if you create a link around an image you have options to create a popup. I’d personally recommend integrating a non-obtrusive script to handle the popups vs having users inserting parameters on their.
That’s true, but I would still appreciate the possibilty of having that function… as an additional function. :)
I still need to build the link picker. I apologize for the delay on that front I’ve been distracted by other things.
You mean file-picker? That is one thing I really would like to have.
When you create a link around the image you can set rel tags and class to allow *box scripts to handle them. In fact lightbox is in the Rel drop down already :)
Where is the rel-dropdown. I cant find it in my installation (most recent version)
I think that would be better handled through your article form then in tinyMCE. Nils has asked for a “Insert as Article Image” option for the image picker, but I have this idea for a completely different interface for article images banging around in my head.
I think the ideal thing would be to control all images through one, and only one interface (when posting). Uploading/editing is in imho okay to have on the side. If you can implement some of these features above, my need and use of the txp:article_image would sink down to zero immediately. :)
Quick summary
- One image picker for all kinds of insertions with a separate admin interface for easy customisation.
- Better image control options with css/and perhaps javascript
- A similar picker for files and links?
Cheers! :)
Last edited by joel (2007-04-11 17:16:59)
Offline
#276 2007-04-11 20:05:50
- joel
- Member
- Registered: 2004-11-26
- Posts: 162
Re: hak_tinymce WYSIWYG article editor
Another cool feature would be to let the user apply a pre-defined css-class to the content. Is this possible via “styles” select list?
Offline