
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@xme-react/editor
Advanced tools
import的方式
@import '@xm/editor';
const UPLOADER_URL = `/sfs/webUpload/file?uid=${cookie.userId}&ts=${cookie.timeStamp}&token=${cookie.token}`;
//要加载的ckeditor.js的地址
// 不填默认为https://web.jituancaiyun.com/statics/editor
// 完整的ckeditor.js路径为https://web.jituancaiyun.com/statics/editor/ckediter.js
const editorPath = 'https://web.jituancaiyun.com/statics/editor';
// 动态加载编辑器
CKEDITOR_LOADER(path, function() {
console.log(‘加载完成);
});
// 初始化
// 默认使用了uploadBySelf(上传图片)插件与toggleToolbar(编辑器失去焦点(内容为空)隐藏编辑器,否则隐藏编辑器的toolbar)插件
const editor = CKEDITOR.replace(id, {
// 编辑区域失去焦点时传过来当前编辑器中的内容
onTextChange: function(id, value) {},
// 上传图片
uploadUrl: 'http://web.jituancaiyun.net/' + UPLOADER_URL
});
// 如果不想要uploadBySelf或者toggleToolbar
const editor1 = CKEDITOR.replace(id, {
// 编辑区域失去焦点时传过来当前编辑器中的内容
onTextChange: function(id, value) {},
uploadFileName: 'xxx',
// 上传图片
uploadUrl: 'http://web.jituancaiyun.net/' + UPLOADER_URL,
// 上传成功后,根据服务端返回的数据获取url
getUploaderUrl: function(result) {
if (typeof result === 'string') {
try {
result = JSON.parse(result)
} catch(e) {}
}
if (result && result.fileUrl) {
return result.fileUrl
}
return ''
},
extraPlugins: '', // 全部不要
});
<script src="https://web.jituancaiyun.com/statics/editor/ckeditor.js"></script>
mac下npm run build
windows下 暂无
FAQs
We found that @xme-react/editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.