退格鍵和刪除鍵在CKEditor中如何工作?如果我在可編輯區域中有一個iframe,並將光標放在其旁邊,那麼點擊退格/刪除將刪除iframe /從中刪除其HTML代碼。如何在CKEditor中退格和刪除?
我無法得到的是這種行爲的代碼在哪裏?在退格的地方,範圍縮小到iframe,並被刪除。
請指出我在源代碼中發生這種情況的正確方向。
退格鍵和刪除鍵在CKEditor中如何工作?如果我在可編輯區域中有一個iframe,並將光標放在其旁邊,那麼點擊退格/刪除將刪除iframe /從中刪除其HTML代碼。如何在CKEditor中退格和刪除?
我無法得到的是這種行爲的代碼在哪裏?在退格的地方,範圍縮小到iframe,並被刪除。
請指出我在源代碼中發生這種情況的正確方向。
也有一些是刪除
oKeystrokeHandler.SetKeystrokes
,但我不關於行爲
var FCKEnterKey = function(targetWindow, enterMode, shiftEnterMode, tabSpaces)
{
this.Window = targetWindow ;
this.EnterMode = enterMode || 'p' ;
this.ShiftEnterMode = shiftEnterMode || 'br' ;
// Setup the Keystroke Handler.
var oKeystrokeHandler = new FCKKeystrokeHandler(false) ;
oKeystrokeHandler._EnterKey = this ;
oKeystrokeHandler.OnKeystroke = FCKEnterKey_OnKeystroke ;
oKeystrokeHandler.SetKeystrokes([
[ 13 , 'Enter' ],
[ SHIFT + 13, 'ShiftEnter' ],
[ 8 , 'Backspace' ],
[ CTRL + 8 , 'CtrlBackspace' ],
[ 46 , 'Delete' ]
]) ;
this.TabText = '' ;
// Safari by default inserts 4 spaces on TAB, while others make the editor
// loose focus. So, we need to handle it here to not include those spaces.
if (tabSpaces > 0 || FCKBrowserInfo.IsSafari)
{
while (tabSpaces--)
this.TabText += '\xa0' ;
oKeystrokeHandler.SetKeystrokes([ 9, 'Tab' ]);
}
oKeystrokeHandler.AttachToElement(targetWindow.document) ;
}
我看到了輸入密鑰的代碼... 其即時通訊無法找到的刪除和退格碼.. 我檢查了keystrokehandler,它有一些特殊的鍵行爲定義,但沒有用於退格或刪除.. :( – ghostCoder 2011-04-15 06:07:08
在這裏CK編輯退格鍵和刪除正常工作... – Gowri 2011-04-14 10:01:43
我知道..我的問題是它是如何工作的,它的代碼在哪裏。我無法找到它。 :( – ghostCoder 2011-04-14 13:45:17