Skip to content

truncgil/Imageditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Open source online image editing application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published