Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#991 2012-01-27 11:03:42

babyben
Member
Registered: 2007-06-03
Posts: 39

Re: hak_tinymce WYSIWYG article editor

I’ve found a strange quirk after upgrading: after inserting an image, the resulting HTML is relative but becomes incorrect when the page is view via a category list, so the image doesn’t appear.

Added to the page: <img src="images/xx.jpg" alt="" width="" height="" />
becomes: <img src="blog/images/557.jpg" alt="" width="534" height="331" /> when viewed on a blog section category list, and the image doesn’t show.

How do I adjust the plugin to output an absolute path, or even with the initial slash in place so the image will always appear? It shows the absolute path in the popup, but this isn’t used in the HTML.

Thanks!

Offline

#992 2012-01-30 10:28:38

alivato
Member
Registered: 2011-03-31
Posts: 152

Re: hak_tinymce WYSIWYG article editor

Someone. Tell me at least in what direction to go?

Offline

#993 2012-01-30 12:15:46

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

Re: hak_tinymce WYSIWYG article editor

A script like prettyphoto would do what you require.

Offline

#994 2012-01-30 12:52:11

alivato
Member
Registered: 2011-03-31
Posts: 152

Re: hak_tinymce WYSIWYG article editor

There are various scripts: prettyphoto, litebox, fancybox,…

That’s just how it is connected? Plugin installed hak_tinymce.

When I insert a picture (hak_tinymce), <img src=“pic1.jpg” />

And I have to do so
<a href=“pic1. jpg”><img src=“pic1.jpg” /></ a>

Last edited by alivato (2012-01-30 12:53:21)

Offline

#995 2012-01-30 19:24:30

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

Re: hak_tinymce WYSIWYG article editor

You have link the images yourself and set up whatever hook you want to send to teh script (rel, class whatever you want to use)

Alternatively you could come up with a script that pulls all the thumbnail urls and removes the t from the id and uses that. Something like

$("img[class=lb]").click(function (){
var fullImg = $(this).attr("src").replace("t","");
DoLightBoxMagiks(fullImg);
});

I’m not really familiar with the various scripts to know which would be easiest to integrate in this manner.


Shoving is the answer – pusher robot

Offline

#996 2012-01-30 19:28:01

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

Re: hak_tinymce WYSIWYG article editor

@babyben: Take a look at the various url options and see if affects anything.

It’s odd that it’s showing one format but cleaning up to a different one, but you should be able to get what you want from the URL options.


Shoving is the answer – pusher robot

Offline

#997 2012-02-07 18:13:02

babyben
Member
Registered: 2007-06-03
Posts: 39

Re: hak_tinymce WYSIWYG article editor

hakjoon wrote:

@babyben: Take a look at the various url options and see if affects anything.

It’s odd that it’s showing one format but cleaning up to a different one, but you should be able to get what you want from the URL options.

Had a play with the URL options, and can’t get it to work on both article and category listing pages. Any more ideas?

Offline

#998 2012-02-07 18:39:11

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

Re: hak_tinymce WYSIWYG article editor

What do you mean by article and category listing pages?


Shoving is the answer – pusher robot

Offline

#999 2012-02-09 18:49:48

babyben
Member
Registered: 2007-06-03
Posts: 39

Re: hak_tinymce WYSIWYG article editor

Easiest way to show what I mean is article = www.domain.com/section/article-title while category listing = www.domain.com/section/?c=whatever-category

If that makes sense?

Offline

#1000 2012-02-09 19:13:17

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

Re: hak_tinymce WYSIWYG article editor

I’m not exactly understanding what you are trying to do. Are you putting those urls in an article and they are getting rewritten?


Shoving is the answer – pusher robot

Offline

#1001 2012-02-10 12:49:24

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: hak_tinymce WYSIWYG article editor

Pat – any news on the multiple image adding? :¬) grin

Happy to donate for that functionality! :D

Offline

#1002 2012-02-11 16:34:31

babyben
Member
Registered: 2007-06-03
Posts: 39

Re: hak_tinymce WYSIWYG article editor

Just found the issues – some of the plugin preference were surrounded by quote marks, removing these and the options then activated, changed the relative URLs and everything is loading.

Phew! Appreciate the help :)

Offline

#1003 2012-03-09 22:20:13

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: hak_tinymce WYSIWYG article editor

Anyone:

This may have been answered but I missed it in the thread — the version of Tinymce that is donwloaded is older and not compatable with ie9 (or at least I think this is the case) — can someone let me know what I need to do to upgrade since I know that this was a problem for TinyMCE when IE9 was first released but has now been rtesolved with thier more recent releases —

What I have been doing is having client use compatability mode — but I want to address the item moving foward on new installs and then work backwards ——

Thanks.

Last edited by progre55 (2012-03-09 22:21:15)

Offline

#1004 2012-03-15 18:09:52

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

Re: hak_tinymce WYSIWYG article editor

Sorry I’ve been away and the forum, for some reason, does not let me log in with my phone anymore.

The distribution of TinyMCE that comes with the download is completely stock. It includes an extra plugin called txpimage to handle the image stuff which you can either copy from the distribution or pull from the github repo I’ll try to update the package with a newer version.


Shoving is the answer – pusher robot

Offline

#1005 2012-03-15 18:13:12

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: hak_tinymce WYSIWYG article editor

hakjoon:

Thanks for the response. Your answer is what I thought but for some reason when I tried to overwrite one of my older accounts replacing the old stock with the new TinyMCE it funked out the site —- I will try again — but wanted to make sure I could swap without any problems —

progre55

Offline

Board footer

Powered by FluxBB