Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding alignment to image upload #102

Open
funk101 opened this issue Aug 5, 2020 · 0 comments
Open

Adding alignment to image upload #102

funk101 opened this issue Aug 5, 2020 · 0 comments

Comments

@funk101
Copy link

funk101 commented Aug 5, 2020

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? editor-js/paragraph#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant