下面的代码实现了给定ID = 200所需的功能。
window.jodit = new Jodit('#field_1560', {
image: {
useImageEditor: true,
},
imageEditor: {
crop: true,
closeAfterSave: true,
width: 500,
height: 500,
cropDefaultWidth: "50%"
},
"toolbarAdaptive": false,
controls: {
font: {
list: {
"Mystique": "Mystique",
"Musette": "Musette",
"FuturaRoundMediumOblique": "Futura Round Medium Oblique",
"FuturaRoundCondMedium": "Futura Round Cond Medium",
"FuturaRoundMedium": "Futura Round Medium",
"Compare": "Compare",
"PlayfairDisplayBoldItalic": "Playfair Display Bold Italic",
"PlayfairDisplayBold": "Playfair Display Bold",
"DolcettoBoldScript": "Dolcetto Bold Script"
}
}
}
});