UEditor component is an open source web online WYSIWYG rich text editor provided by Baidu. It has lightweight, customizable, and focuses on user experience. It is based on the MIT protocol and has very powerful functions. Recently, during the use process, I found that the uploaded pictures (or inserting existing emoji pictures) cannot be scaled normally. Select the picture, click and drag the small label on the edge of the picture with the mouse, and the picture can only be reduced but not enlarged. I have tried many methods but couldn't solve them. I even checked the js source code and found no exceptions.
Later, I accidentally discovered that Bootstrap was introduced on the page, and Bootstrap sets the box-sizing style to border-box by default. For specific content, please check the Bootstrap release log: http://blog.getbootstrap.com/2013/08/19/bootstrap-3-released/
For the definition and usage of box-sizing style, you can see here: http://www.w3school.com.cn/cssref/pr_box-sizing.asp
Influential css in Bootstrap:
*,*:before,*:after {-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}We just need to redefine css on the page to override the above styles in Bootstrap, such as:
.edui-container *{-webkit-box-sizing: content-box;-moz-box-sizing: content-box;box-sizing: content-box;}.edui-container *:before,.edui-container *:after {-webkit-box-sizing: content-box;-moz-box-sizing: content-box;box-sizing: content-box;}*.edui-container is the css class used on the parent element of the UEditor component.
The above is the full description of the solution of the Bootstrap 3 box-sizing style introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time!