Trying to layout some text on the album page, but when I set up a table and paste it into Album Description the table is spaced down the page when displayed.
Somehow a bunch of "page breaks" are being added to the table code on the album page. Dont know if that is the problem, or if there is a better way to layout text on an album page.
Hi, thanks for the reply.
tiny_mce is enabled
In options>plugin>tiny_mce>Text editor configuration - is set to "zenpag-default-full" I see the icons above the text field when editing pages, including the table icon.
But for albums, I don't see the icons above the text field unless >Text editor configuration - is set to "zenphoto-default", and there is no table icon. Any other option and there are no icons.
Options -> General -> Allowed tags, I have added tags, and it does not seem to make any difference. But I'm not really sure on the format.
Tables work fine on pages, but not on albums.
Changing the theme does not make any difference.
when I change tiny_mce>Text editor configuration - Zenphoto. to "zenpage-default-full", no icons are shown above the text area on the album page, and the tables are full of page breaks when i view the site source code.
Or do i look somewhere else for "zenpage full configuration". searching and cant find it.
Might be tha the zenpage config files does not work or fit in the space on albums (Don'T remember as it is not made for that..). Anyway, you can make your own config file. Place it in /plugins/tiny_mce/config/.js.php
How to configure TinyMCE is documented its website.
Not sure I have explained the problem well.
The problem is not that the table buttons do not show on the tiny_mce editor on the album page, although that is odd. I can create and paste a table into the source code in the editor.
The problem is when there is a table on the album page, and I view the page in Explorer or Firfox, the table is pushed down the page because a bunch of have been inserted into the table code.
Odd with one theme zpGalleriffic the page breaks are not inserted into the code, but with the other themes the page breaks are there in the source code when viewed in the browser.
`
etc`
There are no within the table code when i view the table in tiny_mce editor.
I can reproduce this. Has to do with a very persistent tinyMCE.
Sometimes you need to hard-refresh (i.e. also clear the cache) the edit page a few times to reload TinyMCE and make the changes stick.
After a few refreshes I got it to work.
Still, best you make your own config file as @crylian suggested.
If you wish to use the table element buttons on TinyMCe you need to add them to the config file or make your own. The Zenpage one, specifically the full featured one, just does not fit the width on album/image pages. So it requires re-ordering of the buttons. I'll put it on the list to have a full featured one for these page for 1.4.3.
Added the table button to the TinyMCe config file, and created a table using that button in TinyMCe on an album page.
code from TinyMCe HTML
`
cell1
cell2
However, when I view the code in Firfox, or Explorer
cell1
cell2
Note all the added
` in the code. I am assuming this is what is moving the table down the page.
On pages, the tables work fine.
Appreciate the suggestions, thanks
Ah, now I remember… That is a very small bug in 1.4.2.2 and a leftover from the old now unsupported frontend editing. This internally convert invisible line breaks into (display only, the actual content is not changed).
Use echo getAlbumDesc() instead of printAlbumDesc() on your theme to workaround this.