feat: job creation

This commit is contained in:
Jannat Patel
2024-03-18 16:55:36 +05:30
parent 63bcbb6506
commit cc07dd849c
8 changed files with 345 additions and 15 deletions

View File

@@ -73,7 +73,7 @@ export function getFileSize(file_size) {
export function showToast(title, text, icon) {
createToast({
title: title,
text: text,
text: htmlToText(text),
icon: icon,
iconClasses:
icon == 'check'
@@ -84,6 +84,12 @@ export function showToast(title, text, icon) {
})
}
export function htmlToText(html) {
const div = document.createElement('div')
div.innerHTML = html
return div.textContent || div.innerText || ''
}
export function getEditorTools() {
return {
header: Header,