Changeset - 5ac02f26f11b
[Not reviewed]
0 2 0
Joshua Simmons - 4 years ago 2017-08-13 01:38:08
i@joshuasimmons.name
remove markdown editor (it traps tabs :'(
2 files changed with 2 insertions and 26 deletions:
0 comments (0 inline, 0 general)
static/js/site.js
Show inline comments
 
/* global window ace */
 

	
 
const loadEditors = () => {
 
/*const loadEditors = () => {
 
    const $editors = $('.modal-body textarea, #id_body, #id_comment, #id_message, #id_text, #id_abstract, #id_additional_notes, #id_content_override, #id_description, #id_biography');
 
    $editors.each((i, el) => {
 
      const editorId = `markdown-editor-${i}`;
 
      const reportDiv = $('<div>').attr('id', editorId);
 
      const setupEditor = (editor, textarea) => {
 
          const session = editor.getSession();
...
 
@@ -27,6 +27,7 @@ const loadEditors = () => {
 
    });
 
};
 

	
 
$(() => {
 
    loadEditors();
 
});
 
*/
...
 
\ No newline at end of file
static/scss/editor.scss
Show inline comments
 
form {
 
   #id_body,
 
   #id_comment,
 
   #id_message,
 
   #id_text,
 
   #id_abstract,
 
   #id_additional_notes,
 
   #id_content_override,
 
   #id_description,
 
   #id_biography,
 
   .modal-body textarea {
 
       display: none
 
   }
 
   .ace_editor {
 
       min-height: 200px;
 
       width: 100%;
 
       border: 1px dotted #CCC;
 
   }
 
   .ace_content {
 
       padding: 5px;
 
   }
 
   textarea.ace_text-input {
 
       display: block;
 
   }
 
}
0 comments (0 inline, 0 general)