
| Autor | Wiadomość |
|---|---|
|
Napisane: 12.08.2009 [11:44]
|
|
|
scoobany
zarejestrowany: 31.08.2007
Posty: 41
|
Witam, Zauważyłem ze na końcu każdego paragrafu TYPO3 dodaje mi spana z "niechcianą" składnią. Przykładowy paragraf wygląda następująco: HTML <p>Nullam a leo mauris, nec tincidunt tellus.<span htmlarea_bookmark="true" id="1250066763732S" style="display: none;"> </span></p> Szczere mówiąc nie mam pojęcia co wywołało "pojawienie" się tak dziwnego elementu w paragrafie. Wygooglałem opis, który być może generuje link (ale głowy nie dam): +HTMLArea.prototype.getBookmark = function (range) { + // For performance, includeNodes=true if intended to SelectBookmark. + // Create the bookmark info (random IDs). + var bookmark = { + startId : (new Date()).valueOf() + Math.floor(Math.random()*1000) + 'S', + endId : (new Date()).valueOf() + Math.floor(Math.random()*1000) + 'E' + }; + + var startSpan; + var endSpan; + var rangeClone = range.cloneRange(); + + // For collapsed ranges, add just the start marker. + if (!range.collapsed ) { + endSpan = this._doc.createElement("span"); + endSpan.style.display = "none"; + endSpan.id = bookmark.endId; + endSpan.setAttribute("HTMLArea_bookmark", true); + endSpan.innerHTML = " "; + rangeClone.collapse(false); + rangeClone.insertNode(endSpan); + } + + startSpan = this._doc.createElement("span"); + startSpan.style.display = "none"; + startSpan.id = bookmark.startId; + startSpan.setAttribute("HTMLArea_bookmark", true); + startSpan.innerHTML = " "; + var rangeClone = range.cloneRange(); + rangeClone.collapse(true); + rangeClone.insertNode(startSpan); + bookmark.startNode = startSpan; + bookmark.endNode = endSpan; + // Update the range position. + if (endSpan) { + range.setEndBefore(endSpan); + range.setStartAfter(startSpan); + } else { + range.setEndAfter(startSpan); + range.collapse(false); + } + return bookmark; całość jest dostępna na stronie Miał ktoś może podobny problem, lub wie gdzie leży przyczyna? Za pomoc z góry wielkie dzięki. Pozdrawiam |