backspace和delete在CKEditor中如何工作?

backspace和delete在CKEditor中如何工作?,ckeditor,fckeditor,Ckeditor,Fckeditor,backspace和delete键在CKEditor中如何工作?如果我在可编辑区域中有一个iframe,并将光标放在它旁边,点击backspace/delete将删除iframe/从中删除其HTML代码 我无法得到的是,这种行为的代码在哪里?当点击backspace时,范围缩小到iframe并被删除 请给我指出源代码中发生这种情况的正确方向。关于删除 oKeystrokeHandler.SetKeystrokes 但我不担心这种行为 var FCKEnterKey = function( tar

backspace和delete键在CKEditor中如何工作?如果我在可编辑区域中有一个iframe,并将光标放在它旁边,点击backspace/delete将删除iframe/从中删除其HTML代码

我无法得到的是,这种行为的代码在哪里?当点击backspace时,范围缩小到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 ) ;
}

有一些关于删除的内容

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 ) ;
}

在ck编辑器中,退格和删除可以正常工作…我知道。。我的问题是它是如何工作的,它的代码在哪里。我找不到那个(在ck编辑器中,backspace和delete可以正常工作……我知道……我的问题是它是如何工作的,它的代码在哪里。我找不到它。)(我看到了回车键的代码…是我找不到的删除和退格代码..我检查了击键处理程序,它定义了一些特殊的键行为,但没有退格或删除..:(我看到了回车键的代码…是我找不到的删除和退格代码..我检查了击键处理程序,它定义了一些特殊的键行为,但没有退格或删除..:(