Skip to content

Commit 3cb5217

Browse files
author
nezanuha
committed
Change markdownEditor to MarkdownEditor class import
1 parent 949cad0 commit 3cb5217

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-text-editor",
3-
"version": "0.0.20-beta.1",
3+
"version": "0.0.20-beta.2",
44
"description": "A powerful, easy-to-use Markdown editor with a real-time preview, syntax highlighting. Ideal for developers, writers, and content creators who need a seamless, interactive writing experience with full Markdown support.",
55
"main": "./dist/markdown-text-editor.js",
66
"style": "./dist/markdown-text-editor.css",

src/plugins/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// main.js
2-
export { default as markdownEditor } from './markdown/editor';
2+
export { default as MarkdownEditor } from './markdown/editor';

src/plugins/markdown/editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ marked.setOptions({
88
breaks: true
99
});
1010

11-
class markdownEditor {
11+
class MarkdownEditor {
1212
constructor(selector, options = {}) {
1313
this.usertextarea = typeof selector === 'string' ? document.querySelector(selector) : selector;
1414
this.options = options;
@@ -137,4 +137,4 @@ class markdownEditor {
137137
}
138138
}
139139

140-
export default markdownEditor;
140+
export default MarkdownEditor;

0 commit comments

Comments
 (0)