emoji.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
  4. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  5. -->
  6. <html lang="en">
  7. <head>
  8. <meta charset="utf-8">
  9. <title>Emoji plugin &mdash; CKEditor Sample</title>
  10. <script src="../../../ckeditor.js"></script>
  11. <link rel="stylesheet" href="../../../samples/css/samples.css">
  12. <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
  13. </head>
  14. <body>
  15. <style>
  16. .adjoined-bottom:before {
  17. height: 270px;
  18. }
  19. .content ul.sample-data {
  20. margin: 0;
  21. }
  22. .content .sample-data p {
  23. font-size: 1rem;
  24. margin: 0;
  25. }
  26. </style>
  27. <nav class="navigation-a">
  28. <div class="grid-container">
  29. <ul class="navigation-a-left grid-width-70">
  30. <li><a href="https://ckeditor.com">Project Homepage</a></li>
  31. <li><a href="https://github.com/ckeditor/ckeditor4/issues">I found a bug</a></li>
  32. <li><a href="https://github.com/ckeditor/ckeditor4" class="icon-pos-right icon-navigation-a-github">Fork CKEditor on GitHub</a></li>
  33. </ul>
  34. <ul class="navigation-a-right grid-width-30">
  35. <li><a href="https://ckeditor.com/blog/">CKEditor Blog</a></li>
  36. </ul>
  37. </div>
  38. </nav>
  39. <header class="header-a">
  40. <div class="grid-container">
  41. <h1 class="header-a-logo grid-width-30">
  42. <img src="../../../samples/img/logo.svg" onerror="this.src='../../../samples/img/logo.png'; this.onerror=null;" alt="CKEditor Sample">
  43. </h1>
  44. </div>
  45. </header>
  46. <main>
  47. <div class="adjoined-top">
  48. <div class="grid-container">
  49. <div class="content grid-width-100">
  50. <h1>Emoji plugin with dropdown menu</h1>
  51. <p>This sample shows the progress of work on Emoji. Type &#8220; : &#8221; and 2 letters to start inserting emoji.</p>
  52. <p>Some emoji to type in editor:</p>
  53. <ul class="sample-data">
  54. <li><p>:beaming_face_with_smiling_eyes:</p></li>
  55. <li><p>:skull:</p></li>
  56. <li><p>:tractor:</p></li>
  57. <li><p>:sparkles:</p></li>
  58. <li><p>:bug:</p></li>
  59. </ul>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="adjoined-bottom">
  64. <div class="grid-container">
  65. <div class="grid-width-100">
  66. <div id="editor">
  67. <h1>This is emoji sample.</h1>
  68. <p>Type <code>:</code> and 2 letters to show suggestion box with emoji.</p>
  69. <p>You can also select emoji icon in toolbar and select interesting emoji from drop down menu.</p>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </main>
  75. <footer class="footer-a grid-container">
  76. <div class="grid-container">
  77. <p class="grid-width-100">
  78. CKEditor &ndash; The text editor for the Internet &ndash; <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
  79. </p>
  80. <p class="grid-width-100" id="copy">
  81. Copyright &copy; 2003-2022, <a class="samples" href="https://cksource.com/">CKSource</a> Holding sp. z o.o. All rights reserved.
  82. </p>
  83. </div>
  84. </footer>
  85. <script>
  86. 'use strict';
  87. ( function() {
  88. var editor = CKEDITOR.replace( 'editor', {
  89. extraPlugins: 'emoji',
  90. toolbarGroups: [
  91. { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
  92. { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
  93. { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
  94. { name: 'forms', groups: [ 'forms' ] },
  95. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  96. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
  97. { name: 'links', groups: [ 'links' ] },
  98. { name: 'colors', groups: [ 'colors' ] },
  99. '/',
  100. { name: 'insert', groups: [ 'insert' ] },
  101. { name: 'styles', groups: [ 'styles' ] },
  102. { name: 'tools', groups: [ 'tools' ] },
  103. { name: 'others', groups: [ 'others' ] },
  104. { name: 'about', groups: [ 'about' ] }
  105. ],
  106. removeButtons: 'Save,Preview,Print,Templates,Cut,Copy,Paste,PasteText,PasteFromWord,Find,Replace,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Strike,Subscript,Superscript,CopyFormatting,RemoveFormat,Outdent,Indent,Blockquote,CreateDiv,JustifyLeft,JustifyCenter,JustifyRight,JustifyBlock,BidiLtr,BidiRtl,Language,Anchor,Image,Table,HorizontalRule,Smiley,SpecialChar,Iframe,PageBreak,Maximize,ShowBlocks,About'
  107. } );
  108. } )();
  109. </script>
  110. </body>
  111. </html>