Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jineditor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jineditor

适用于uni-app的富文本编辑器

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

jin-edit 基于editor的富文本编辑器

兼容性

这是一个uni-app的通用组件,兼容微信小程序端、安卓端、ios端(未测试)、H5端。作者因没有ios设备无法对ios端进行测试,其他端测试无问题。

微信小程序APPH5

我的HbuilderX版本2.6.7,不同的版本可能会造成不兼容的问题。

使用方式

  1. 将此组件进入你的项目中的 /components/ 目录中
  2. 在某个页面中使用该插件
  • script 中引用组件
import jinEdit from '../../components/jin-edit/jin-edit.vue';
export default {
	data() {
		return {
			
		}
	},
	components: {
		jinEdit
	},
	methods: {
		// 点击发布
		editOk(res) {
			console.log(res);
		}
	}
}
  • template 中使用组件
<jinEdit placeholder="请输入内容" @editOk="editOk" uploadFileUrl="/#"></jinEdit> 

Demo

uni-jin(一个uni-app组件集合)

参数

属性类型默认值说明
showImgSizeBooleanfalse点击图片时显示图片大小控件
showImgToolbarBooleanfalse点击图片时显示工具栏控件
showImgResizeBooleanfalse点击图片时显示修改尺寸控件
placeholderString''编辑器占位符
uploadFileUrlString'#'图片上传的服务器地址
fileKeyNameString'file'图片上传时的name
headerObject-图片上传http请求的header
htmlString-初始化的html

方法

方法名参数说明
editOke={html,text,delta,isPublic}点击发布按钮触发

以上

FAQs

Package last updated on 26 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc