Opened 16 years ago
Last modified 9 years ago
#3340 new defect
Wysiwyg: Dislikes some nested definitions
Reported by: | anonymous | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Component: | TracWysiwygPlugin |
Severity: | normal | Keywords: | WYSIWYG definition |
Cc: | Trac Release: | 0.11 |
Description
* C l(s):: * C
results in Failed to activate the wysiwyg editor.
Attachments (0)
Change History (6)
comment:1 Changed 14 years ago by
Keywords: | WYSIWYG added; Wysiwyg removed |
---|
comment:2 follow-up: 3 Changed 13 years ago by
comment:3 Changed 13 years ago by
Replying to anonymous:
Same error occurs with a table where one cell contains an empty bold text (i.e.
''''''
).
It works for me. What version of tracwysiwyg do you use?
I tried the latest;
- Input
|| '''''' ||
to textarea - Click wysiwyg radio button
- Wysiwyg editor is shown without errors
comment:5 Changed 9 years ago by
So, I tried to debug this with the following snippet:
First def:: - first list Second def:: - second list
I have tracked the bug to the function handleList()
when parsing the second list (last line of that snippet). There the holder
is the last dd
element, so when calling
list = getSelfOrAncestor(holder, "li");
That returns null
and blows at the next line, on appendBogusLineBreak()
.
comment:6 Changed 9 years ago by
Tried also the snippet in the ticket description and fails in the same function, but this time holder
is a DocumentFragment
element.
Same error occurs with a table where one cell contains an empty bold text (i.e.
''''''
).