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 Next »

릴리즈 3.2.2509 이상 릴리즈 2.20.2509 이상
캐럿이 위치한 문단에 커스텀 글머리를 설정합니다.

문단을 셀렉션한 경우 셀렉션한 모든 문단에 커스텀 글머리를 설정합니다.


Parameters:

NameTypeDescription
actionNameString액션 이름
customListInfoArray

커스텀 글머리 정보


Example:

editor.execCommand('setCustomList', [
    {
        format: 'bullet',
        levelText: 'A',
        runStyle: {
            color: 'red',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    },
    {
        format: 'bullet',
        levelText: 'B',
        runStyle: {
            color: 'blue',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    },
    {
        format: 'bullet',
        levelText: 'C',
        runStyle: {
            color: 'green',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    },
    {
        format: 'bullet',
        levelText: 'D',
        runStyle: {
            color: 'orange',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    },
    {
        format: 'bullet',
        levelText: 'E',
        runStyle: {
            color: 'purple',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    },
    {
        format: 'bullet',
        levelText: 'F',
        runStyle: {
            color: 'brown',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    },
    {
        format: 'bullet',
        levelText: 'G',
        runStyle: {
            color: 'magenta',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    },
    {
        format: 'bullet',
        levelText: 'H',
        runStyle: {
            color: 'teal',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    },
    {
        format: 'bullet',
        levelText: 'I',
        runStyle: {
            color: 'navy',
            fontSize: { value: 16, unit: 'pt' },
            italic: true,
            fontWeight: 700,
        }
    }
]);


  • No labels