選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SampleDraftInlineStyle.js 785 B

123456789101112131415161718192021222324252627
  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. *
  9. * @emails oncall+draft_js
  10. */
  11. 'use strict';
  12. var _require = require("immutable"),
  13. OrderedSet = _require.OrderedSet;
  14. module.exports = {
  15. BOLD: OrderedSet.of('BOLD'),
  16. BOLD_ITALIC: OrderedSet.of('BOLD', 'ITALIC'),
  17. BOLD_ITALIC_UNDERLINE: OrderedSet.of('BOLD', 'ITALIC', 'UNDERLINE'),
  18. BOLD_UNDERLINE: OrderedSet.of('BOLD', 'UNDERLINE'),
  19. CODE: OrderedSet.of('CODE'),
  20. ITALIC: OrderedSet.of('ITALIC'),
  21. ITALIC_UNDERLINE: OrderedSet.of('ITALIC', 'UNDERLINE'),
  22. NONE: OrderedSet(),
  23. STRIKETHROUGH: OrderedSet.of('STRIKETHROUGH'),
  24. UNDERLINE: OrderedSet.of('UNDERLINE')
  25. };