Adding alignment to image upload
- Dominant language
- TypeScript
- Stars
- 285
- Forks
- 307
- PR merge metrics
- No merged PRs in 30d
Description
I was able to modify the paragraph tool to add text alignment. I need to do the same for the image tool. Can someone supply some code similar to what was posted in this issue? https://github.com/editor-js/paragraph/issues/22
Or is it possible to just include the image in the above code? I see there's a reference to an image:
```/**
* Tool's classes
*/
imageHolder: 'utd-image__picture',
caption: 'utd-image__caption',
link: 'utd-image__link',
}
if so, where would that be, here?
/*Method that specified how to merge two Text blocks.
Called by Editor.js by backspace at the beginning of the Block
@param {ParagraphData} data
@public
*/
merge(data) {
let newData = {
text: this.data.text + data.text,
class: this.data.class,
}
this.data = newData
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.