braft-editor icon indicating copy to clipboard operation
braft-editor copied to clipboard

如何才能从媒体库插入图片时设定默认宽高

Open GitCodeBoy opened this issue 3 years ago • 2 comments

GitCodeBoy avatar Mar 17 '21 20:03 GitCodeBoy

暂时没这个功能 需要自己开发

hanwenbo avatar Apr 21 '21 05:04 hanwenbo

目前我似乎意外的实现了这个功能,但是需要在添加到媒体库时就设置这个值。 param.success({ url: xxx, meta: { id: key, }, width: imageWidth }) 这里添加的宽度值imageWidth,也会生效于图片尺寸控制器上的宽度输入框中初始值 如果塞到meta里面,这个图片尺寸控制器的交互就无效了……但就算像上面那样塞到外面,使用起来也有些问题

yctjb1 avatar Nov 25 '21 07:11 yctjb1