Use of RTE getting a added within last paragraph on save
Trying to determine if a Low V thing or RTE thing or both.
With multiple paragraphs in RTE field type, when I save in Low V I am getting something like the following where a is added within the last paragraph. When I clean this up and save it works; however, anytime I go back and save a group with one of these cases in them, the issue comes back. Driving me crazy :-).
Any guidance?
<p>Aenean euismod sapien amet.</p>
<p> Aenean euismod sapien amet.</p>
EE 2.7.2
LV 2.4.0
Replies
Low 2 Dec 2013 17:15
Does this happen with regular channel fields, too? Or just in LV?
seth 2 Dec 2013 18:14
Not using for this site, but will do a test now.
seth 2 Dec 2013 18:19
Okay, interesting.
So in channel a space is added but it is not converted to a so on front end browser ignores it. I see this when viewing source (notice the space after the second
<p>
).<p>Nulla facilisi. Duis non urna lorem. Aenean laoreet velit ut blandit tincidunt. Morbi iaculis eu nulla ac aliquam. Vivamus bibendum vel nunc a mattis. Proin in interdum leo. Pellentesque imperdiet interdum sagittis. Mauris vel sem eleifend, congue quam nec, tincidunt nisl. Mauris a dictum libero. Nulla commodo mauris vel enim eleifend vehicula. Aenean rhoncus interdum laoreet.
<p> Nulla facilisi. Duis non urna lorem. Aenean laoreet velit ut blandit tincidunt. Morbi iaculis eu nulla ac aliquam. Vivamus bibendum vel nunc a mattis. Proin in interdum leo. Pellentesque imperdiet interdum sagittis. Mauris vel sem eleifend, congue quam nec, tincidunt nisl. Mauris a dictum libero. Nulla commodo mauris vel enim eleifend vehicula. Aenean rhoncus interdum laoreet.
Guessing when going through LV that same behavior with something else in play is rendering that extra space as a
Low 2 Dec 2013 20:55
Is this when you just enter raw text, or when you copy/paste from somewhere else?
seth 2 Dec 2013 21:00
Entering raw results in same situation.
Low 2 Dec 2013 21:02
And how are you displaying the field in your templates? Can you post your code here? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.
seth 2 Dec 2013 22:56
Huh replied but did not come through it seems.
https://gist.github.com/sg-modlab/775...
Low 3 Dec 2013 09:56
I can see that a space is added at the second paragraph (outside, sometimes), but that isn't transformed into a non-breaking space.
To be honest, this looks more like an issue with the native RTE... LV just calls its methods for parsing and whatnot. So I'm not exactly sure if I can change this from the LV side...
seth 3 Dec 2013 12:22
I am reaching out to EllisLab as well. Thanks. Had to remove RTE from this site as gotta go live.
James Smith 28 Jul 2015 08:45
Also seeing this issue... Any workarounds?
James Smith 30 Jul 2015 09:20
I've hacked vt.low_rte.php to get this working as follows:
http://pastie.org/10319702