Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.22 KB

README.md

File metadata and controls

61 lines (48 loc) · 1.22 KB

Online Demo

About Imageditor

Open source online image editing application

Get Started

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>