Chapter 3. File editing and management: rich formatting, file storage, drag and drop

 

Chapter 3 at a glance

Topic

Description, methods, and so on

Page

Editing API Allowing users to compose and edit HTML content  
 
  • execCommand()
81
 
  • File Editor view markup
77
Geolocation API Providing geographic data about the user’s location
  • getCurrentPosition()
82
Quota Management API Querying local storage about availability and usage; requesting a local storage quota
  • File System API
85
File API Reading file objects
  • readAsText()
89
File Writer API Writing data to files stored with the File System API  
 
  • Editing files
89
 
  • CreateFormSubmit
91
Drag and Drop API Using the mouse to select files for import and export  
 
  • Importing files using the drop and dragover events
97
 
  • Saving files using the draggable attribute and dragstart event
98

Look for this icon throughout the chapter to quickly locate the topics outlined in this table.

This chapter covers

  • Rich-text HTML editing
  • Location awareness with geolocation
  • Working with files in a local filesystem
  • Implementing drag and drop

3.1. The Super HTML5 Editor: application overview, prerequisites, and first steps

3.2. Rich-text editing and geolocation

3.3. Managing files locally: the File System, Quota Management, File, - and File Writer APIs

3.4. Adding drag-and-drop interactivity

3.5. Summary