-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor Instance config Interface #285
Changes from 2 commits
64d20c6
dbaff9a
85217c1
d2e8a04
e1c8f65
42018ad
c9b5f67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* Editor Instance config | ||
*/ | ||
export default interface IEditorConfig { | ||
/** | ||
* Element to append Editor | ||
*/ | ||
holderId: string; | ||
|
||
/** | ||
* Blocks list in JSON-format | ||
*/ | ||
data: array; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. указать тип элементов массива |
||
|
||
/** | ||
* Map for used Tools in format { name : Class, ... } | ||
*/ | ||
tools: object; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. { |
||
|
||
/** | ||
* tools configuration {@link tools#ToolConfig} | ||
*/ | ||
toolsConfig: object; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. описать интерфейс ToolsConfig. и тут передается объект {tool: config} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. описать тип объекта, указать что ключ должен соответствовать ключу из tools |
||
|
||
/** | ||
* This Tool will be added by default | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. указать, что строка должна соответствовать одному из ключей tools |
||
*/ | ||
initialBlock: string; | ||
|
||
/** | ||
* First Block placeholder | ||
*/ | ||
placeholder: string; | ||
|
||
/** | ||
* Define tags not to be cutted off while pasting { p: true, b: true, a: true } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. описать интерфейс SanitizerConfig, подключить его в модуле Sanitizer |
||
*/ | ||
sanitizer: object; | ||
|
||
/** | ||
* Do not show toolbar | ||
*/ | ||
hideToolbar: boolean; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тип надо указать у config