editor.execCommand('changeDrawingObjectProperties', {
style: {
border: {
style: 'solid', // solid, dotted, dashed, double
width: 3,
color: { r: 255, g: 0, b: 0 }
}
}
}); // 테두리 변경
editor.execCommand('changeDrawingObjectProperties', {
style: {
float: 'left' // none, left, right
}
}); // float 설정
editor.execCommand('changeDrawingObjectProperties', {
style: {
margin: {
left: 10,
right: 10,
top: 10,
bottom: 10,
}
}
}); // margin 설정
editor.execCommand('changeDrawingObjectProperties', {
style: {
verticalAlign: 'top' // top, middle, bottom, baseline
}
}); // vertical align 설정
editor.execCommand('changeDrawingObjectProperties', {
style: {
width: {
value: 100,
unit: 'px'
}
height: {
value: 100,
unit: 'px'
}
}
}); // 너비, 높이 설정 |