Browse Source

fix typo error

Jocs 1 year ago
parent
commit
7f0c67d822
2 changed files with 4 additions and 3 deletions
  1. 1 0
      .gitignore
  2. 3 3
      src/editor/index.js

+ 1 - 0
.gitignore

@@ -4,6 +4,7 @@ dist/web/*
 build/*
 !build/icons
 coverage
+.vscode
 node_modules/
 npm-debug.log
 npm-debug.log.*

+ 3 - 3
src/editor/index.js

@@ -28,7 +28,7 @@ class Aganippe {
     contentState.render()
 
     eventCenter.subscribe('editEmoji', throttle(this.subscribeEditEmoji.bind(this), 200))
-    this.dispatchEditeEmoji()
+    this.dispatchEditEmoji()
     eventCenter.subscribe('editLanguage', throttle(this.subscribeEditLanguage.bind(this)))
     this.dispatchEditLanguage()
 
@@ -76,9 +76,9 @@ class Aganippe {
   }
 
   /**
-   * dispatchEditeEmoji
+   * dispatchEditEmoji
   */
-  dispatchEditeEmoji () {
+  dispatchEditEmoji () {
     const { container, eventCenter } = this
     const changeHandler = event => {
       const node = selection.getSelectionStart()