Mirror of Quill
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
5.5 KiB

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title>Quill Editor</title>
  5. <meta charset="utf-8">
  6. <link rel="pingback" href="https://webmention.io/aaronpk/xmlrpc" />
  7. <link rel="webmention" href="https://webmention.io/aaronpk/webmention" />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <!-- standard viewport tag to set the viewport to the device's width
  10. , Android 2.3 devices need this so 100% width works properly and
  11. doesn't allow children to blow up the viewport width-->
  12. <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" />
  13. <!-- width=device-width causes the iPhone 5 to letterbox the app, so
  14. we want to exclude it for iPhone 5 to allow full screen apps -->
  15. <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)" />
  16. <link rel="stylesheet" href="/editor-files/medium-editor/css/medium-editor.min.css">
  17. <link rel="stylesheet" href="/editor-files/medium-editor/css/themes/default.min.css">
  18. <link rel="stylesheet" href="/editor-files/medium-editor/css/medium-editor-insert-plugin.min.css">
  19. <link rel="stylesheet" href="/editor-files/medium-editor/css/medium-editor-insert-plugin-frontend.min.css">
  20. <link href="/editor-files/font-awesome/css/font-awesome.css" rel="stylesheet">
  21. <link rel="stylesheet" href="/editor-files/style.css">
  22. <script src="/editor-files/jquery-1.11.3.min.js"></script>
  23. <script src="/editor-files/jquery-ui-1.11.4.custom/jquery-ui.min.js"></script>
  24. <script src="/editor-files/jquery.fileupload.js"></script>
  25. <script src="/editor-files/jquery.iframetransport.js"></script>
  26. <script src="/editor-files/handlebars.min.js"></script>
  27. <script src="/editor-files/medium-editor/js/medium-editor.min.js"></script>
  28. <script src="/editor-files/medium-editor/js/medium-editor-insert-plugin.min.js"></script>
  29. <script src="/libs/localforage.js"></script>
  30. <link rel="apple-touch-icon" sizes="57x57" href="/images/quill-icon-57.png">
  31. <link rel="apple-touch-icon" sizes="72x72" href="/images/quill-icon-72.png">
  32. <link rel="apple-touch-icon" sizes="114x114" href="/images/quill-icon-114.png">
  33. <link rel="apple-touch-icon" sizes="144x144" href="/images/quill-icon-144.png">
  34. <link rel="icon" href="/favicon.ico" type="image/x-icon">
  35. </head>
  36. <body>
  37. <div class="toolbar">
  38. <div class="toolbar-left">
  39. <span class="item"><a href="/"><img src="/editor-files/quill-logo-36.png" width="36" height="31" class="logo"></a></span>
  40. <? if($this->user): ?>
  41. <span class="item text"><b><?= display_url($this->user->url) ?></b></span>
  42. <? endif; ?>
  43. <span class="item text"><span id="draft-status">Draft</span></span>
  44. </div>
  45. <div class="toolbar-right">
  46. <button class="btn" id="publish_btn">Publish <i class="fa fa-caret-down"></i></button>
  47. <button class="btn" id="new_btn">New</button>
  48. </div>
  49. <div class="clear"></div>
  50. </div>
  51. <div class="micropub-html-warning hidden"><div>
  52. <button class="btn btn-default" id="micropub-html-btn">Upgrade me!</button>
  53. <b>Upcoming change!</b>
  54. The Micropub spec now requires HTML content be sent as a nested object, <code>content[html]=&lt;b&gt;example&lt;/b&gt;</code>.
  55. You can <a href="http://indiewebcamp.com/Micropub-brainstorming#HTML_Escaping">read more about the change here</a>.
  56. When you are ready to receive the content as an object, click the button to switch.
  57. </div></div>
  58. <div class="publish-dropdown hidden">
  59. <div class="arrow"></div>
  60. <div class="dropdown-content action-publish">
  61. <div style="float:right"><button class="btn btn-medium" id="publish-confirm">Publish Now</button></div>
  62. <div style="clear:right; margin-bottom: 4px;"></div>
  63. <table id="publish-fields">
  64. <tr>
  65. <td>Tags:</td>
  66. <td><input type="text" class="form-field-small" placeholder="comma separated" id="post-tags"></td>
  67. </tr>
  68. <tr>
  69. <td>Slug:</td>
  70. <td><input type="text" class="form-field-small" id="post-slug"></td>
  71. </tr>
  72. <tr>
  73. <td>Status:</td>
  74. <td>
  75. <select id="post-status" class="form-select-small">
  76. <option value="published">Published</option>
  77. <option value="draft">Draft</option>
  78. </select>
  79. <a href="/docs/post-status" class="small hidden" target="_blank" id="published-status-warning">read this first!</a>
  80. </td>
  81. </tr>
  82. </table>
  83. <div class="helptext hidden" id="publish-in-progress">
  84. Posting... <!-- TODO replace this with a CSS animated spinner -->
  85. </div>
  86. <div class="helptext hidden" id="publish-success">
  87. <div><a href="" id="publish-success-url">View your post</a></div>
  88. </div>
  89. <div class="helptext hidden" id="publish-error">
  90. <div>Something went wrong! Below is the response from your Micropub endpoint.</div><br>
  91. <pre id="publish-error-debug"></pre>
  92. </div>
  93. </div>
  94. <div class="dropdown-content action-signin hidden">
  95. <div class="helptext">You need to sign in before you can publish! Don't worry, your draft will still be here when you finish signing in.</div>
  96. <input type="url" class="form-field-small" placeholder="yourdomain.com" id="signin-domain">
  97. <button class="btn btn-small" id="signin-btn">Sign In</button>
  98. <div class="helptext small"><a href="/docs">How does this work?</a></div>
  99. </div>
  100. </div>
  101. <div class="container">
  102. <input id="post-name" type="text" value="" placeholder="Title">
  103. <div id="content" class="editable"></div>
  104. </div>
  105. <script src="/editor-files/editor.js"></script>
  106. </body>
  107. </html>