mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 07:35:48 +01:00
documentation upd
This commit is contained in:
parent
9347e445e1
commit
feaf00a12f
3 changed files with 7 additions and 5 deletions
|
|
@ -2680,7 +2680,8 @@ var Keyboard = function (_Module) {
|
|||
toolsConfig = this.config.toolsConfig[currentBlock.name];
|
||||
|
||||
/**
|
||||
* Check if configuration for enableLineBreaks property true
|
||||
* Don't handle Enter keydowns when Tool sets enableLineBreaks to true.
|
||||
* Uses for Tools like <code> where line breaks should be handled by default behaviour.
|
||||
*/
|
||||
if (toolsConfig && toolsConfig.enableLineBreaks) {
|
||||
|
||||
|
|
@ -2688,7 +2689,7 @@ var Keyboard = function (_Module) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Check if shift key pressed synchronously with enter key
|
||||
* Allow to create linebreaks by Shift+Enter
|
||||
*/
|
||||
if (event.shiftKey) {
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -75,7 +75,8 @@ export default class Keyboard extends Module {
|
|||
toolsConfig = this.config.toolsConfig[currentBlock.name];
|
||||
|
||||
/**
|
||||
* Check if configuration for enableLineBreaks property true
|
||||
* Don't handle Enter keydowns when Tool sets enableLineBreaks to true.
|
||||
* Uses for Tools like <code> where line breaks should be handled by default behaviour.
|
||||
*/
|
||||
if (toolsConfig && toolsConfig.enableLineBreaks) {
|
||||
|
||||
|
|
@ -84,7 +85,7 @@ export default class Keyboard extends Module {
|
|||
}
|
||||
|
||||
/**
|
||||
* Check if shift key pressed synchronously with enter key
|
||||
* Allow to create linebreaks by Shift+Enter
|
||||
*/
|
||||
if (event.shiftKey) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue