Migrated code responsible for assisting the area editor to editor.js