Skip to content

Commit

Permalink
New version 4.1.8 Read more https://github.com/xdan/jodit/blob/main/C…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Apr 11, 2024
1 parent c27d828 commit 5f4a556
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "4.1.7",
"version": "4.1.8",
"description": "Jodit is an awesome and useful wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ai-assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To use the AI Assistant plugin, you need to include it in your Jodit editor conf
```javascript
const editor = Jodit.make('#editor', {
aiAssistant: {
aiAssistantCallback() {
aiAssistantCallback(propmt, htmlFragment) {
return Promise.resolve('AI Assistant is not configured');
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/ai-assistant/ai-assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export class aiAssistant extends Plugin {
closeOnClickOverlay: true,
closeOnEsc: true,
resizable: false,
draggable: true,
minWidth: 460,
maxWidth: 460
draggable: true
// minWidth: 460,
// maxWidth: 460
});
dialog.bindDestruct(jodit);

Expand Down
11 changes: 10 additions & 1 deletion src/plugins/ai-assistant/ui/ui-ai-assistant.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
.jodit-ui-ai-assistant {
width: 100%;
padding: var(--padding-default);
min-width: 460px;

@media (max-width: 768px) {
min-width: 100%;
}

&__body {
margin-bottom: 10px;
Expand Down Expand Up @@ -39,7 +44,7 @@
}

&__results {
padding: 7px;
padding: var(--padding-default);
position: relative;
border-color: var(--color-label);
border-style: solid;
Expand All @@ -51,6 +56,10 @@
line-height: 1.5;
}

&__results p {
margin: 0 0 10px;
}

&__close {
position: absolute;
top: 0;
Expand Down

0 comments on commit 5f4a556

Please sign in to comment.