Skip to content
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

你好我想请问下为什么还要全局引入一次tinymce资源 #39

Open
zul0925 opened this issue May 10, 2021 · 1 comment
Open

Comments

@zul0925
Copy link

zul0925 commented May 10, 2021

image
我看到你插件的package.json中的peerDependencies声明了tinymce作为插件的依赖,既然node_modules中已经有一份tinymce的资源了为什么还要再通过script标签额外引入

@lpreterite
Copy link
Owner

你是指这个教程中的提及全局引用的情况吗?

如果是的话,我是这样理解的peerDependencies声明只是起声明作用,具体在使用@lpreterite/vue-tinymce组件的项目中并没有安装和使用,所以还得在项目安装和使用。除了全局还有内部引入的方式,只有在项目中引入了才能正常运作。大概就是这样一种情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants