code: def __init__(
      self, editor=None, env=None, require_save=True, extension=".txt"
  ):
      self.editor = editor
      self.env = env
      self.require_save = require_save
      self.extension = extension
  
imports: import contextlib
  import math
  import os
  import sys
  import time
  from ._compat import _default_text_stdout
  from ._compat import CYGWIN
  from ._compat import get_best_encoding
  from ._compat import int_types
  from ._compat import isatty
  from ._compat import open_stream
  from ._compat import range_type
  from ._compat import strip_ansi
  from ._compat import term_len
  from ._compat import WIN
  from .exceptions import ClickException
  from .utils import echo
label_desc: Use image node_id 1 to create a new Editor object from inherited base classes: object with example: obj = Editor(editor, env, require_save, extension)