-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rich-text-editor): DLT-2244 add ability inherit image properties…
… in editor (#604) Co-authored-by: Eugenia Mariotti <eugenia.mariotti@dialpad.com>
- Loading branch information
1 parent
11717a4
commit eb65dea
Showing
9 changed files
with
116 additions
and
35 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
packages/dialtone-vue2/components/rich_text_editor/extensions/image/image.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Image from '@tiptap/extension-image'; | ||
|
||
export const ConfigurableImage = Image.extend({ | ||
name: 'ConfigurableImage', | ||
|
||
addAttributes () { | ||
return { | ||
src: { | ||
default: '', | ||
}, | ||
alt: { | ||
default: undefined, | ||
}, | ||
title: { | ||
default: undefined, | ||
}, | ||
width: { | ||
default: undefined, | ||
}, | ||
height: { | ||
default: undefined, | ||
}, | ||
style: { | ||
default: undefined, | ||
}, | ||
}; | ||
}, | ||
}).configure({ inline: true, allowBase64: true }); |
3 changes: 3 additions & 0 deletions
3
packages/dialtone-vue2/components/rich_text_editor/extensions/image/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { ConfigurableImage } from './image'; | ||
|
||
export default ConfigurableImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/dialtone-vue3/components/rich_text_editor/extensions/image/image.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Image from '@tiptap/extension-image'; | ||
|
||
export const ConfigurableImage = Image.extend({ | ||
name: 'ConfigurableImage', | ||
|
||
addAttributes () { | ||
return { | ||
src: { | ||
default: '', | ||
}, | ||
alt: { | ||
default: undefined, | ||
}, | ||
title: { | ||
default: undefined, | ||
}, | ||
width: { | ||
default: undefined, | ||
}, | ||
height: { | ||
default: undefined, | ||
}, | ||
style: { | ||
default: undefined, | ||
}, | ||
}; | ||
}, | ||
}).configure({ inline: true, allowBase64: true }); |
3 changes: 3 additions & 0 deletions
3
packages/dialtone-vue3/components/rich_text_editor/extensions/image/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { ConfigurableImage } from './image'; | ||
|
||
export default ConfigurableImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters