mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 07:35:48 +01:00
Add inlineToolbar property (#1293)
* Add inlineToolbar property * Fix lint errors * Fix comments Co-authored-by: Murod Khaydarov <murod.haydarov@inbox.ru> * Sort Tools Working, Can be optimized further * Fix dataset error and use children * Fix lint errors * Add as improvement to CHNAGELOG.md * Fix comments Co-authored-by: Peter Savchenko <specc.dev@gmail.com> * Add comments and small fixes * Fix lint errors * Fix sortTools() and check inlineToolbar property * Fix lint errors * Fix conditions and property names * Separate block toggler from buttons list in ui * Fix lint errors * Fix condition names in allowedToShow() * Minor bug fixes * Fix linter warnings * Update docs/CHANGELOG.md Co-authored-by: Murod Khaydarov <murod.haydarov@inbox.ru> * create inlineToolbarSettings() method * Minor fixes * Clearify boolean casting * upd bundle * fix getInlineToolbarSettings * refactor & create new instance every showing * remove unused codee Co-authored-by: Murod Khaydarov <murod.haydarov@inbox.ru> Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
fdd00e3e7e
commit
274cb76bef
12 changed files with 196 additions and 128 deletions
|
|
@ -98,6 +98,14 @@
|
|||
*/
|
||||
holder: 'editorjs',
|
||||
|
||||
/**
|
||||
* Common Inline Toolbar settings
|
||||
* - if true (or not specified), the order from 'tool' property will be used
|
||||
* - if an array of tool names, this order will be used
|
||||
*/
|
||||
// inlineToolbar: ['link', 'marker', 'bold', 'italic'],
|
||||
// inlineToolbar: true,
|
||||
|
||||
/**
|
||||
* Tools list
|
||||
*/
|
||||
|
|
@ -107,7 +115,7 @@
|
|||
*/
|
||||
header: {
|
||||
class: Header,
|
||||
inlineToolbar: ['link'],
|
||||
inlineToolbar: ['marker', 'link'],
|
||||
config: {
|
||||
placeholder: 'Header'
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue