-
Notifications
You must be signed in to change notification settings - Fork 55
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
Migrate to Typescript #70
Migrate to Typescript #70
Conversation
Signed-off-by: Prakhar Kumar <prakhar.meerut@gmail.com>
Signed-off-by: Prakhar Kumar <prakhar.meerut@gmail.com>
Signed-off-by: Prakhar Kumar <prakhar.meerut@gmail.com>
@@ -21,40 +27,38 @@ import { IconBrackets } from '@codexteam/icons'; | |||
* Code Tool for the Editor.js allows to include code examples in your articles. | |||
*/ | |||
export default class CodeTool { |
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.
try extending BlockToolConstructable
import { IconBrackets } from '@codexteam/icons'; | ||
|
||
import type { API, HTMLPasteEvent, ToolConfig } from "@editorjs/editorjs"; | ||
|
||
interface CodeData { |
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.
Pls add jsdoc for all interfaces and properties
static get isReadOnlySupported() { | ||
return true; | ||
} | ||
|
||
/** | ||
* Allow to press Enter inside the CodeTool textarea |
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.
why all docs have been removed?
Signed-off-by: Prakhar Kumar <prakhar.meerut@gmail.com>
Outdated |
Resolves #69