A module for Quill rich text editor to allow images to be resized.
npm install @ssumo/quill-resize-moduleA module for Quill rich text editor to allow images to be resized.
Also see quill-resize-module,
a module that enables resize for image/iframe/video.
bugfix
- fixed width of the toolbar does not adjust to accommodate text in different languages
- fixed inputTip locale text is ignored
npm install @ssumo/quill-resize-module
``javascript
import Quill from "quill";
import ResizeModule from "@ssumo/quill-resize-module";
Quill.register("modules/resize", ResizeModule);
const quill = new Quill(editor, {
modules: {
resize: {
locale: {
altTip: "按住alt键比例缩放",
inputTip: "回车键确认",
floatLeft: "靠左",
floatRight: "靠右",
center: "居中",
restore: "还原",
},
},
},
});
`
` Hello World! Some initial bold texthtml``
crossorigin="anonymous"
integrity="sha384-7kltdnODhBho8GSWnwD9l9rilXkpuia4Anp4TKHPOrp8/MS/+083g4it4MYED/hc"
href="http://lib.baomitu.com/quill/2.0.0-dev.3/quill.snow.min.css"
rel="stylesheet"
/>
crossorigin="anonymous"
integrity="sha384-MDio1/ps0nK1tabxUqZ+1w2NM9faPltR1mDqXcNleeuiSi0KBXqIsWofIp4r5A0+"
src="http://lib.baomitu.com/quill/2.0.0-dev.3/quill.min.js"
>