Editor Inline closing if we touch any where on the screen

Editor Inline closing if we touch any where on the screen

srinu1222srinu1222 Posts: 5Questions: 1Answers: 0

Currently, if i touch anywhere on the screen my inline editor is closing. i want to prevent this and editor should close only when i hit submit icon that i already have. this is sample code: editor.inlineCreate(
'start',
{
cancelTrigger: 3,
cancelHtml: '<i class="fa fa-times"/>',
submitTrigger: 2,
submitHtml: '<i class="fa fa-floppy-o"/>'
}
);

Answers

  • colincolin Posts: 15,226Questions: 1Answers: 2,593

    You can use the onBlur option of none for that behaviour. form-options has an example with submit, so just change the value to none.

    Colin

Sign In or Register to comment.