선택된 이미지의 속성을 설정합니다Set image properties of the selected image.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String액션 이름 | 'changeDrawingObjectProperties' image properties setting API |
properties | Object | { style: {Object} } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
editor.execCommand('changeDrawingObjectProperties', { style: { border: { style: 'solid', // solid, dotted, dashed, double width: 3, color: { r: 255, g: 0, b: 0 } } } }); // 테두리Set border 변경style editor.execCommand('changeDrawingObjectProperties', { style: { float: 'left' // none, left, right } }); // Set float 설정properties editor.execCommand('changeDrawingObjectProperties', { style: { margin: { left: 10, right: 10, top: 10, bottom: 10, } } }); // Set margin 설정properties editor.execCommand('changeDrawingObjectProperties', { style: { verticalAlign: 'top' // top, middle, bottom, baseline } }); // Set vertical align 설정properties editor.execCommand('changeDrawingObjectProperties', { style: { width: { value: 100, unit: 'px' } height: { value: 100, unit: 'px' } } }); // Set 너비width, 높이height 설정properties |