added a new item content type: markdown

- emacs editor has an option to select markdown, now it has two planes: one for content editing and the other to show preview
- CodeMirror editor updated to 5.64.0
- to convert markdown to html we use showdown https://github.com/showdownjs/showdown (conversion is done on the client side)
This commit is contained in:
2021-11-26 21:49:21 +01:00
parent 119497bb01
commit 35cb54324f
8 changed files with 355 additions and 73 deletions

View File

@@ -167,6 +167,7 @@ form_emacs_content_type_formatted_text = formatted text
form_emacs_content_type_html = html
form_emacs_content_type_bbcode = bbcode
form_emacs_content_type_other = other \(no formatting\)
form_emacs_content_type_markdown = markdown
last_header = Last logged users
@@ -341,6 +342,8 @@ upload_button_download = Download
upload_button_edit = Edit
upload_error = Error:
upload_processing = Processing...
upload_content_edit = Content
upload_content_preview = Preview
who_header = Sessions

View File

@@ -172,6 +172,7 @@ form_emacs_content_type_formatted_text = sformatowany text
form_emacs_content_type_html = html
form_emacs_content_type_bbcode = bbcode
form_emacs_content_type_other = inny \(brak formatowania\)
form_emacs_content_type_markdown = markdown
last_header = Ostatnio logowani użytkownicy
@@ -361,6 +362,9 @@ upload_button_download = Ściągnij
upload_button_edit = Edytuj
upload_error = Błąd:
upload_processing = Przygotowywanie...
upload_content_edit = Zawartość
upload_content_preview = Podgląd
who_header = Lista sesji
who_tab_index = L.p.