Opened 16 years ago
Closed 16 years ago
#3130 closed Bug (fixed)
Tabspaces setting in tab plugin is not working
Reported by: | Martin Kou | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.0 |
Component: | General | Version: | SVN (FCKeditor) - Retired |
Keywords: | Oracle Review+ | Cc: | Senthil |
Description
To reproduce:
- Set config.tabSpaces=4 in config.js.
- Open replacebyclass.html in IE or Firefox.
- Put focus into editing area.
- Press tab.
- Nothing happens.
In Senthil's demonstration this evening, what happened was the editor put 4 spaces while blurring itself and put focus into the next field - but that's also wrong.
Attachments (1)
Change History (4)
Changed 16 years ago by
Attachment: | 3130.patch added |
---|
comment:1 Changed 16 years ago by
Keywords: | Review? added |
---|
comment:2 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
Correct. The tab plugin was one one the first things to reach the code. At that moment we didn't have insertHtml ready for it, so it got marked as TODO.
The solution is as simple as this patch.
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with [3233].
Click here for more info about our SVN system.
The logic for handling tabSpaces is simply not handled at all - it was marked as a TODO in an empty block in the trunk.
I've added a simple implementation that seems to work ok in Firefox and IE. I guess Senthil has added an external tab key handler in their code which is causing the NBSPs to be added - that handler should be removed after applying this patch.