Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

DraftEditorModes.js.flow 859 B

3 лет назад
123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict
  9. * @emails oncall+draft_js
  10. */
  11. 'use strict';
  12. export type DraftEditorModes =
  13. /**
  14. * `edit` is the most common mode for text entry. This includes most typing,
  15. * deletion, cut/copy/paste, and other behaviors.
  16. */
  17. 'edit'
  18. /**
  19. * `composite` mode handles IME text entry.
  20. */
  21. | 'composite'
  22. /**
  23. * `drag` mode handles editor behavior while a drag event is occurring.
  24. */
  25. | 'drag'
  26. /**
  27. * `cut` mode allows us to effectively ignore all edit behaviors while the`
  28. * browser performs a native `cut` operation on the DOM.
  29. */
  30. | 'cut'
  31. /**
  32. * `render` mode is the normal "null" mode, during which no edit behavior is
  33. * expected or observed.
  34. */
  35. | 'render';