Open source online image editing application
Javascript Code Block in <head>
tags
var truncgil = new Truncgil({
// ENTER CONFIGURATION HERE
// ENTER CONFIGURATION HERE
// image : "logo2.svg",
crossOrigin: true,
baseUrl: 'https://editor.truncgil.com',
ui: {
defaultTheme: dark_mode,
openImageDialog: {
show: false
},
allowEditorClose: true
},
tools : {
export: {
defaultFormat: 'png',
defaultQuality: 0.8,
defaultName: 'Trunçgil Editor',
},
stickers: {
replaceDefault: false,
items: <?php echo $stickers ?>
}
},
onLoad: function () {
window.postMessage('truncgilLoaded', '*');
truncgil.loadState(state).then(function() {
console.log("State is loaded");
});
onLoad();
},
});
HTML code block in <body>
tags
<truncgil-editor>
</truncgil-editor>
<script src="scripts.min.js?v35"></script>