If I go into a content item and just click around on things and save and publish several times, Umbraco adds a <p><br /><br /></p> in the bodyText property, below existing content. It forces the bottom of the containing div to enlarge and looks bad. I've gone in and deleted them a number of time but they keep coming back. It usually takes more than one attempt at deleting to get rid of them, I assume because it's trying to add more while saving/publishing.
Any ideas why this would happen and how to stop it?
Seems to happen regularly when I save and publish on another tab than the first, content one, but the p's and br's go into the bodyText on the first tab.
Here's a clip of two divs side by side, the one on the left has been saved and published a couple times, the one on the right just once, and below them a clip of how it looks in dev tools.
Just checked this on a different computer running a different OS and VS and w/a different package on U7.1.1, same thing, save and publish from a different tab than the first one, adds p's and br's. Going to enter a bug on it.
I find it even happens on a simple content page that only has a cropped image but if I click save and publish on the imagery tab, it immediately adds this: <p><br /><br /></p>, I can look at the html in the RTE and see it there.
The package I mentioned was Kevin's LocalGov package which uses a similar doc structure but doesn't have the image stuff. I wonder if that has something to do with it...
My doc structure looks like this:
Root
- Content
-- Page
--- Section Pages
the most maxed out doctype looks like this:
Content tab (from content doctype)
- title (text string)
- content (RTE)
Featured tab (from Section Pages)
- lead (limited RTE)
- image title (text str)
- image message (limited RTE)
Imagery tab
- image cropper (4 crops: full banner; medium banner; std image; portrait)
- feature image (media picker)
- gallery images (multiple media picker)
Metadata tab (from content)
- subject (text)
- robots (text)
sometimes happen without any change of content, just only click save and publish in some pc using IE 11. But with same test with IE 11 on another pc, it cannot repeat .
I am so frustrated that how comes.
I am using vorto combine with RTE , I am not sure is it about this.
My user keep complaining about this, because they need to keep deleting extra p and br after each save and publish.
Easily replicate by installing a fresh empty 7.8.1 create a doc type with one rte. Create and config the Gallery macro from snippet with default params etc and enable Use in rich text editor, but not render.
Now create your new content page, put a line of text in and then the gallery below. Click save and publish a few times and you will see the Ps appear.
Keeps adding extra p and br tags
If I go into a content item and just click around on things and save and publish several times, Umbraco adds a
<p><br /><br /></p>
in the bodyText property, below existing content. It forces the bottom of the containing div to enlarge and looks bad. I've gone in and deleted them a number of time but they keep coming back. It usually takes more than one attempt at deleting to get rid of them, I assume because it's trying to add more while saving/publishing.Any ideas why this would happen and how to stop it?
Nobody else seeing this, hunh? I get it all the time, looks like this in a view source:
Seems to happen regularly when I save and publish on another tab than the first, content one, but the p's and br's go into the bodyText on the first tab.
Here's a clip of two divs side by side, the one on the left has been saved and published a couple times, the one on the right just once, and below them a clip of how it looks in dev tools.
Just checked this on a different computer running a different OS and VS and w/a different package on U7.1.1, same thing, save and publish from a different tab than the first one, adds p's and br's. Going to enter a bug on it.
Here's a link to the issue tracker: issues.umbraco.org/issue/U4-4815
I can't recreate this - what does your Document Type look like.. something like that below?
Content tab
-bodyText - (RT Editor)
ImagePanel1 tab
-Image1 - (Media Picker)
-Image1Caption - (Multiline Text)
ImagePanel2 tab
-Image2 - (Media Picker)
-Image2Caption - (Multiline Text)
You mention a Package - what do you have installed inside of Umbraco?
Hi Steve, sorry for the slow response.
I find it even happens on a simple content page that only has a cropped image but if I click save and publish on the imagery tab, it immediately adds this:
<p><br /><br /></p>
, I can look at the html in the RTE and see it there.The package I mentioned was Kevin's LocalGov package which uses a similar doc structure but doesn't have the image stuff. I wonder if that has something to do with it...
My doc structure looks like this:
it be whack, dog:
This also happens to me.
I've tried to remove the Forced root value but it still is happing.
..\Umbraco_Client\Tinymce3\tiny_mce_src.js and on line 13452 change to this forced_root_block : '',
Issue was resolved for a few days but reappeared.
May I know which version of Umbraco are you using, having this issue?
I too came across some inconsistencies only to realize later the tinymce is update and it does not honor all config params under tinymce.config.
Had to manually go and edit the new referenced .JS file.
I cant seem to find any documentation on this transition or what is expected in near-term updates.
Perhaps you can share the version(s) you are using and we can try to figure out from there?
cheers
I am using version 7.1.4
I too have the 7.1.4 and can replicate this on 7.2 alpha too.
Not sure if any of you figured a solution yet that wont break between updates.
Stupid question perhaps but are you all on Windows and using Chrome because I can't recreate this - could it be environmental?
Im on Windows 7 x64 with Chrome Version 35.0.1916.153 m
Have any of you figured this out?
This started happening in all pages, just after save and publish. Would be interested to hear what sort of solution did you come up with.
This just happened to me in version 7.1.4. Only in Chrome, thought. Works fine in IE.
Not sure if this can be re-produced on the 7.2+
Looks like its a Chrome-specific thing from the feedback here, but not classified as a bug in the tracker - at least I couldnt find it
One solution would be to attach to document publish event and remove the extra
tags but then this is really a hack-approach.
Still happen in V7.7.6
sometimes happen without any change of content, just only click save and publish in some pc using IE 11. But with same test with IE 11 on another pc, it cannot repeat .
I am so frustrated that how comes. I am using vorto combine with RTE , I am not sure is it about this.
My user keep complaining about this, because they need to keep deleting extra p and br after each save and publish.
Please help
This is now happening to me on 7.8.1 but for me it adds 3 p tags like this when I use the gallery macro.
Easily replicate by installing a fresh empty 7.8.1 create a doc type with one rte. Create and config the Gallery macro from snippet with default params etc and enable Use in rich text editor, but not render.
Now create your new content page, put a line of text in and then the gallery below. Click save and publish a few times and you will see the Ps appear.
I have managed to solve this issue.
If you go to tinyMceConfig.config, under validElements change "#p" to "-p".
This will eliminate empty p tags.
For more reference: https://www.tinymce.com/docs/configure/content-filtering/#valid_elements
Hi Riadul
Thanks for sharing this. What happens when the user/editor press Enter key multiple times to leave line spacing in that case?
is working on a reply...