
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@hqwlkj/wangeditor-plugin-float-image
Advanced tools
wangEditor float-image plugin
wangEditor 图片浮动 插件。
yarn add @wangeditor/plugin-float-image
import { Boot } from '@wangeditor/editor'
import floatImageModule from '@wangeditor/plugin-float-image'
// 注册。要在创建编辑器之前注册,且只能注册一次,不可重复注册。
Boot.registerModule(floatImageModule)
编辑器配置
import { IEditorConfig } from '@wangeditor/editor'
const editorConfig: Partial<IEditorConfig> = {
hoverbarKeys: {
// 在编辑器中,选中链接文本时,要弹出的菜单
link: {
menuKeys: [ // 默认的配置可以通过 `editor.getConfig().hoverbarKeys.image` 获取
'imageWidth30',
'imageWidth50',
'imageWidth100',
'|', // 分割符
'imageFloatNone', // 增加 '图片浮动' 菜单
'imageFloatLeft',
'imageFloatRight',
'|', // 分割符
'editImage',
'viewImageLink',
'deleteImage',
],
},
},
// 其他...
}
然后创建编辑器和工具栏,会用到 editorConfig
。具体查看 wangEditor 文档。
一个 float-image 节点产出的 HTML 格式如下
<div class="w-e-image-container" style="width: 30%;">
<img src="https://news-bos.cdn.bcebos.com/mvideo/log-news.png" style="width: 100%; float: right">
</div>
支持 i18n 多语言
FAQs
wangEditor float-image plugin
The npm package @hqwlkj/wangeditor-plugin-float-image receives a total of 0 weekly downloads. As such, @hqwlkj/wangeditor-plugin-float-image popularity was classified as not popular.
We found that @hqwlkj/wangeditor-plugin-float-image 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.