summernote-image-attributes

https://github.com/StudioJunkyard/summernote-image-attributes

解決summernote無法在圖片上增加連結的問題。

$('.summernote').summernote({
        lang: 'zh-TW',
        height: 300,
        popover: {
            image: [
                ['custom', ['imageAttributes']],
                ['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],
                ['float', ['floatLeft', 'floatRight', 'floatNone']],
                ['remove', ['removeMedia']]
            ]
        },
        displayFields: {
            imageBasic: true, //title、alt、換圖片
            imageExtra: true, //更換圖片的className設定
            linkBasic: true, //圖片上面加連結
            linkExtra: false, //圖片上面加上的連結的CalssName設定
        }
    })

results matching ""

    No results matching ""