Code Monkey home page Code Monkey logo

vue-use-tinymce's Introduction

vue-use-tinymce

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

vue-use-tinymce's People

Contributors

liub1934 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vue-use-tinymce's Issues

引入tinymce找不到资源路径

<template>
	<div id="app">
		<editor :init="init" />
	</div>
</template>

<script>
import tinymce from 'tinymce/tinymce'
import Editor from '@tinymce/tinymce-vue'
export default {
	name: 'App',
	data() {
		return {
			init: {
				height: 500,
				menubar: false,
				plugins: ['advlist autolink lists link image charmap print preview anchor', 
                                                 'searchreplace visualblocks code fullscreen', 'insertdatetime media
                                                table paste code help wordcount'],
				toolbar: 'undo redo | formatselect | bold italic backcolor | \
           alignleft aligncenter alignright alignjustify | \
           bullist numlist outdent indent | removeformat | help'
			}
		}
	},
	mounted() {},
	components: {
		Editor
	}
}
</script>

<style>
#app {
	font-family: Avenir, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
	color: #2c3e50;
	margin-top: 60px;
}
</style>

新创建的项目,引入import tinymce from 'tinymce/tinymce'之后报错:Uncaught SyntaxError: Unexpected token '<',这个是什么原因呢,一直都不行
版本:

"@tinymce/tinymce-vue": "^3.2.2",
"tinymce": "^5.3.1",

紧急求助

找到了一些原因,tinymce中的icons.js没有打包进去,在public目录下创建/js/icons/default/目录,将node_module中tinymce/icons文件夹文件复制进去,临时解决了问题,为什么这个目录下的文件没有被打包呢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.