Pages (2): 1 2   
Member
Member
samanthab   24-08-2009, 06:29
#1

hi, my problem is that there are extra tags added to the zen pages when viewed... they do not appear in the html source in the administration area.. but when i view the page through view source they are there after each

li and and i dont want them there.. how do i fix this

Administrator
Administrator
acrylian   24-08-2009, 08:05
#2

You need to be a little more specific. Where is that added?

Member
Member
samanthab   24-08-2009, 12:06
#3

sorry, i see the text hasnt come out properly either.. there are extra break tags after all the paragraph and li tags

Administrator
Administrator
acrylian   24-08-2009, 12:12
#4

I still do not understand where that is added. Within the content of a Zenpage page or a Zenphoto page or where?

Also please what Zenphoto release do you use and maybe post a link so we can look at it.

Member
Member
samanthab   24-08-2009, 19:37
#5

http://203.98.75.55/~icehawkc/insulated-pantecs/ - the gallery description, if you view source you will see all the extra break tags, these do not appear in the html source
the version is Zenphoto version 1.2.5 [4022] (Official Build)

Administrator
Administrator
acrylian   25-08-2009, 08:26
#6

The are inserted by the TinyMCE editor if you use the ENTER key. Once before it was setup to automatically generate but that was skipped because it lead to invalid HTML when a was already surrounding the text as it is in standard themes.

This can of course be configured differently. TinyMCE's configuration (for the Gallery, Zenpage has a separate one) is in zp-core/js/editor_config.js.php. You will find all configuration options here: http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
You will have disable this option: http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/force_br_newlines

Member
Member
nateomedia   05-11-2009, 03:07
#7

I ran into this problem myself. I set force_br_newlines to false and forced_root_block to false and I'm still getting these annoying br tags. I thought it might have something to do with caching, so I cleared both my browser and Zen Photo and logged out/in of the admin. No dice. The br tags are not just being inserted during new lines — if I go into the html editor and type , the editor is breaking them out onto new lines on its own.

I would love some info on how to fix this, if anyone has any. For now I'm fixing it through CSS.

Member
Member
sbillard   05-11-2009, 03:49
#8

Have you tried the nightly build? Zenphoto was converting line breaks to BR tags in some cases. We have changed that so it only occurs if TinyMCE is not enabled.

Member
Member
nateomedia   05-11-2009, 08:48
#9

No, I'm using 1.2.6. However, I'm not sure if what's happening to me is problem you're referring to. As I wrote, even when I don't put in a hard return, TinyMCE still seems to be inserting br tags.

I've noticed nightly builds mentioned in other threads — is the expectation for users to use nightly builds instead of official stable releases? I'm not used to do things that way, but if that's the better way to go, I will do that.

Administrator
Administrator
acrylian   05-11-2009, 10:31
#10

That is the issue. TinyMCE inserts instead of because most themes put the image/album description already within a element so this would lead to invalidation. As said you can configure TinyMCE to your own liking.

Well, the nightly build is the developement version that will become the next official one. If you encounter issues in an official version it is of course fixed in the developement version. By testing if the nightly fixes your issue that you help us to eliminate any further bugs.

Member
Member
nateomedia   05-11-2009, 22:36
#11

I'm not sure you understood what I wrote. To clarify:

If I write:

on a single line, TinyMCE does this:

`

`

I have set force_br_newlines to false and forced_root_block to false in zp-core/js/editor_config.js.php. Not sure if that even matters, however, because there are no new lines to convert — it's all one line.

But it's neither here nor there — I fixed the issue through CSS by setting the br tag to display:none. It would be nice if br tags were not injected to begin with — Zenphoto is hardly an application that is useable out of the box by a novice so it doesn't make a lot of sense to "dumb down" this aspect of the text editor — especially when there is an html mode that gives the appearance of control over the html. It would make more sense to have force_br_newlines off by default and allow it to be activated by users who need it.

Just my $0.02.

Anyway, thanks for the help and fast replies. Zenphoto is a great piece of software. Thanks!

Member
Member
sbillard   06-11-2009, 01:39
#12

It is tinyMCE that is doign this? If so, the problem will need to be addressed by them.

Member
Member
nateomedia   06-11-2009, 02:40
#13

Well, I don't know. Earlier in this thread acrylian brought up TinyMCE, so that's what I assumed was the issue. I'm just mentioning that I followed his instructions to turn off br tags, but it didn't work.

Administrator
Administrator
acrylian   06-11-2009, 10:00
#14

As said before please try the nightly. The extra tags are added on display on the theme side by the on-the-fly-js editing function, they are not added for real to the text. Configuring TinyMCE alone does not help if you are on 1.2.6.

Member
Member
samanthab   08-11-2009, 12:04
#15

i am still having this trouble, i upgraded to latest build but that didnt work.. so you are suggesting that we download a nightly build version and hope there are no bugs? everyone using this must have the same problem? i now also have the problem of this text "ablum description here" appearing on all of the albums although this text does not appear in admin or database

Member
Member
samanthab   08-11-2009, 12:27
#16

whoops found the album text problem... if only i could get rid of these extra tags..doh

Administrator
Administrator
acrylian   08-11-2009, 13:12
#17

Well, the nightly has this issue fixed and will become 1.2.7 in the future. If you can't wait you have to try the nightly (and also help us to find other bugs by doing that) or you will have to wait until 1.2.7 is released.

Member
Member
lainyrache   18-11-2009, 16:59
#18

Hi, I was having this problem, upgraded using the nightly build 11_16, which fixed the extra br problem, but now I have no tinymce editor on by edit album and edit image pages.

Does anyone have any idea why this might be happening?

I might be barking up the wrong tree, but it looks like the javascript is not being called on admin-edit.php when editing an album/image.

Thanks for any help!

Member
Member
sbillard   18-11-2009, 18:11
#19

I am seeing the TinyMce editor for albums. Are you getting Javascript errors?

Member
Member
lainyrache   19-11-2009, 11:43
#20

no there aren't any errors at all, just no editor

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.