I really did look for this in a previous post. Since the update to tinymce4 I have the following problem: any path to an image contained within a Description field gets changed to to: /zp-core/... . I can't see where to change this behavior. My workaround has been to turn off the plugin, but now I need to do a lot of descriptions and it would be really nice to have the text editor available. The images I'm pointing to are above the zp-core folder.
Comments
What description field are you inserting the image in?
What technique do you use to insert it?
What exactly is the link that you insert?
I certainly did insert an image into an album description and it did work correctly. My guess is that you inserted a "relative" link. You need to specify the full path.
http://summerhill-antiques.com/index.php?album=inventory&image=1389.jpg
If you could look at the page I linked above and suggest a fix (I tried editing the tinymce4/config/*.php) I would prefer to use the latest Zenphoto
If you insert links you need to insert absolute paths simply because the backend is in a different location than the front end you are actually inserting the image for. I don't think that the url configuration in TinyMCE has changed. But maybe the update from v3 to v4 changed some default. If inserted urls should be relative or absolute can be configured:
http://www.tinymce.com/wiki.php/Configuration:relative_urls
All of our included config files are set to absolute urls already.
I actually haven't understood exactly what image that are and where they are. If you are inserting images from the gallery / albums the best way is to use tinyZenpage (the "ZP" button on the tinymce toolbar).
You can get such a zoom by enabling the colorbox plugin and adding a jQuery call `$('.yourclass').colorbox();` to the `` of your theme and then add that `.yourclass` to the links inserted.
A suggestion: I looked at the site and I would actually do all this different from the technical point of view. If I see correctly you have one produce with different views. I would use albums for each product where the main image would be the album thumb and the others additional images. Then no manual linking or inserting is necessary at all. There are theme function for the prev/next album as there are for images (live example on our site: http://www.zenphoto.org/theme/)
Regarding your 800 items. Of couse that would make a lot of albums but also a clean structure. You would have to create one layout template for the layout and then never do any manual work again (you know you can have different layouts for theme pages using the multiple_layouts plugin ?). maybe give it a try if it works for you on your other install. But of course whatever works best for your purpose and existing site structure.
I just checked we had `relative_urls: false` at least since the 1.4.4.x config files (and probably longer then) for TinyMCE v3 already. The functionality of it did not change between v3 and v4 according to the tinymce docs.
But if that setting bothers you you can easily create your own config files. Just place them in `/plugins/tinymce4/config/ (but change the paths within to the new location)
Regarding the fractions that looks like double htmlencodig. Could also be stored wrong in the database. Have to try to reproduce that.
I enabled the colorbox plugin, but can't find any documentation on how to use it on my custom theme. I can't even find any examples. I'm using the Cabel Sasser FancyZoom which is nice because the image will zoom only enough to fit the available window.
Colorbox is widely documented on its own site:
http://www.jacklmoore.com/colorbox/
Our plugin does not provide any default configuration except built in in standard themes since there are quite some. These *box scripts work all quite similar besides that and of course it does not need to be colorbox.
http://www.anticoii.com/index.php?album=the-collection&image=0807.jpg