Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

How to write exts? #42

@weiyinfu

Description

@weiyinfu

Version

1.4.0

Test Environment

linux,webpack,vue
I write one page like below.

<template>
  <editor :exts="exts" />
</template>
<script>
import "tui-editor/dist/tui-editor.css";
import "tui-editor/dist/tui-editor-contents.css";
import "codemirror/lib/codemirror.css";
import { Editor } from "@toast-ui/vue-editor";
import tui from "tui-editor";
tui.defineExtension("youtube", () => {
  console.log("extension is defined");//This sentence is never reached !
});
export default {
  components: { Editor },
  data() {
    return {
      exts: ["youtube"]
    };
  },
  mounted() {},
  methods: {}
};
</script>
<style lang="less">
</style>

Current Behavior

console.log("extension is defined"); this sentence cannot be reached !

Expected Behavior

When I write youtube,it should become one link.

image

But now it doesn't work,how can I run the youtube demo in vue. Can you write one specific ext demo like this link:make new extensions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions