Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

선택된 이미지의 속성을 설정합니다.


Parameters:

NameTypeDescription
actionNameString액션 이름
propertiesObject

{ style: {Object} }


Example:

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'
        }
	}
}); // 너비, 높이 설정
  • No labels