Nested span tags for link pop-ups
| Project: | Bible |
| Version: | 6.x-1.2-rc3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I discovered that when you are using a WYSIWYG editor, like FCKeditor, and edit an existing node that contains Bible verse references, that a new set of span tags gets added to the link for every time you save the node. In other words, if you view the source of the page after editing the node, you would see:
<span id="Gen_1_1_08884100" style="background-color: rgb(238, 238, 255);" class="bls"><span class="bls" style="background-color:#EEEEFF;" id="Gen_1_1_61518800">Gen 1:1</span><span class=popup id="popup-Gen_1_1_61518800" style="position:absolute;visibility:hidden;z-index:999;border-style:ridge;border-color:#00AAFF;border-width:1px;background-color:#EEEEEE;width:200px;height:200px;overflow-x:hidden;overflow-y:auto;">In the beginning God created the heavens and the earth.</span></span><span style="border: 1px ridge rgb(0, 170, 255); position: absolute; visibility: hidden; z-index: 999; background-color: rgb(238, 238, 238); width: 200px; height: 200px; overflow-x: hidden; overflow-y: auto;" id="popup-Gen_1_1_08884100" class="popup">In the beginning God created the heavens and the earth.</span>
If a particular node gets edited several times, this turns into a real mess.

#1
Is there any fix for this yet?
#2
Dear Sir:
Sorry...I don't have any idea how to fix it. I might mistake the procedure. Since I cannot reproduce this situation, could you please tell me how to make this?
MikeLee
#3
I'm using FCKeditor for new content. If I ...
1. Create a page of content and type in some verse reference, for example, Ge. 1:1
2. Save the page
3. Edit the page
4. Save it again.
5. Edit it again, only this time click on the "Source" button in FCKeditor.
In the source, you'll find that the tags for the verse pop up have been nested around every reference to Ge. 1:1. After a couple of edits to a page, the pop-up gets very erratic.
Thanks.
#4
Dear Sir:
Sorry... I can't repeat this problem on my test-site. After step.5, I get
Gen. 1:1
only. My FCKeditor version is 6.x-2.0-beta1.
MikeLee
#5
I finally figured out that the problem was having the Bible filter enabled as an FCKeditor security filter. Once I removed that, everything works as it should.
Thanks
rww