Backend- support for adding descriptions to pages, posts, photos

This commit is contained in:
Alex 2026-06-08 14:56:15 -07:00
parent 4564aa9534
commit d09f49ed24
7 changed files with 36 additions and 0 deletions

View file

@ -39,6 +39,14 @@ const editorInit = () => {
"width": 800,
"height": 500
});
const descEditor = Jodit.make('#post_description', {
"enter": "P",
"theme": 'dark',
"disablePlugins": "ai-assistant,about",
"width": 800,
"height": 200
});
}
if (document.querySelector('#page_text')) {
@ -49,6 +57,14 @@ const editorInit = () => {
"width": 800,
"height": 500
});
const descEditoreditor = Jodit.make('#page_description', {
"enter": "P",
"theme": 'dark',
"disablePlugins": "ai-assistant,about",
"width": 800,
"height": 200
});
}
if (document.querySelector('#photos_text')) {
@ -59,6 +75,14 @@ const editorInit = () => {
"width": 800,
"height": 500
});
const descEditoreditor = Jodit.make('#photos_description', {
"enter": "P",
"theme": 'dark',
"disablePlugins": "ai-assistant,about",
"width": 800,
"height": 200
});
}
}