Added new default text and default link thumbnails, color fixes for some buttons
This commit is contained in:
parent
2e1c102438
commit
058e50add7
14 changed files with 162 additions and 104 deletions
|
@ -189,12 +189,15 @@ setTimeout(() => markdown('post-text','preview'), 200);
|
|||
|
||||
function markdown(first, second) {
|
||||
var input = document.getElementById(first).value;
|
||||
|
||||
var dest = document.getElementById(second);
|
||||
for (var i = 0; i < dest.children.length; i++) {
|
||||
dest.removeChild(dest.children[i]);
|
||||
if(input && dest){
|
||||
for (var i = 0; i < dest.children.length; i++) {
|
||||
dest.removeChild(dest.children[i]);
|
||||
}
|
||||
document
|
||||
.getElementById(second)
|
||||
.appendChild(safeMarkdown(input));
|
||||
}
|
||||
document.getElementById(second).appendChild(safeMarkdown(input));
|
||||
}
|
||||
|
||||
function charLimit(form, text) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue