Opened 16 years ago
Closed 16 years ago
#2732 closed Bug (fixed)
Formatted (<pre>) content is replaced by "_FCKpd_1" when entering source mode
Reported by: | Ian Danforth | Owned by: | Alfonso Martínez de Lizarrondo |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | FCKeditor 2.6.4 |
Component: | Core : Styles | Version: | SVN (FCKeditor) - Retired |
Keywords: | Confirmed Review+ | Cc: |
Description
- Go to nightly build
http://www.fckeditor.net/nightly/fckeditor/_samples/default.html
- Select sample text and change to "Formatted" format
- Click the Source button
Expected:
Same text in <pre> </pre> tags.
Observed:
<pre>_FCKpd_1</pre>
Note: Marked high as this will garble any existing code snippets using this format.
Attachments (1)
Change History (6)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
comment:3 Changed 16 years ago by
Keywords: | Confirmed Review? added |
---|---|
Milestone: | → FCKeditor 2.6.4 |
Owner: | set to Alfonso Martínez de Lizarrondo |
Status: | new → assigned |
Version: | → SVN |
The problem is that the calls changed in [2619] used the .AddItem as a function, using the returned value, but it turns out that Array::push() returns the length of the new array, and the custom .AddItem did return the index of the new element.
The following patch should fix it.
comment:4 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
I can reproduce this 100% of the time.