codeURIComponent(payload));
			filepath = payload.filename;
			let basename = payload.filename.split("/").pop();
			filename = basename;
			fontsize = payload.fontsize;
			theme = payload.theme;
			tabid = payload.tabid;

			console.log("NotepadA editor loaded: ", payload);

			//Load the content of the file
			$.get("/api/fs/download?file=" + filepath, function(fileContent){
					if (fileContent.error !== undefined){
						//Failed to get file
						setTimeout(function(){
							parent.removeTab(tabid);
		