Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jquery aloha编辑器,aloha.triger_Javascript_Jquery_Html - Fatal编程技术网

Javascript jquery aloha编辑器,aloha.triger

Javascript jquery aloha编辑器,aloha.triger,javascript,jquery,html,Javascript,Jquery,Html,我有一个关于阿洛哈的问题 如何实际使用 Aloha.trigger( 'aloha-smart-content-changed', {     'editable'          : , // object of the editable     'keyIdentifier'     : , // char | null     'keyCode'           : , // char | null     'char'              : , // char | null

我有一个关于阿洛哈的问题 如何实际使用

Aloha.trigger( 'aloha-smart-content-changed', {
    'editable'          : , // object of the editable
    'keyIdentifier'     : , // char | null
    'keyCode'           : , // char | null
    'char'              : , // char | null
    'triggerType'       : , // keypress, idle, blur, paste, block-change
    'snapshotContent'   : , // snapshot content of the editable as HTML String
} );

实际上?我找不到任何例子。只能找到Aloha.bind

Aloha.bind( 'aloha-editable-created', function( jEvent, editable ) {
    console.log( 'editable "' + editable.getId() + '" created' );
});

谢谢你

用这样的东西

Aloha.bind( 'aloha-smart-content-changed', function( jEvent, aEvent){
      // Get updated content
  console.log( this, jEvent, aEvent.getSnapshotContent() );
      // Get the object that is updated - jQ object 
  console.log($(aEvent.editable.obj).eq(0);
});
Aloha.bind( 'aloha-smart-content-changed', function( jEvent, aEvent){
      // Get updated content
  console.log( this, jEvent, aEvent.getSnapshotContent() );
      // Get the object that is updated - jQ object 
  console.log($(aEvent.editable.obj).eq(0);
});