Skip to content

Adds ability to add custom classes when adding a new block via class property in data object#185

Open
alberttoledo wants to merge 1 commit intobrijeshb42:masterfrom
alberttoledo:master
Open

Adds ability to add custom classes when adding a new block via class property in data object#185
alberttoledo wants to merge 1 commit intobrijeshb42:masterfrom
alberttoledo:master

Conversation

@alberttoledo
Copy link

@alberttoledo alberttoledo commented Sep 23, 2019

Custom classes for blocks

Just like passing a src to an image block, I would love to be able to add a custom class to a block when creating it.

Drawback is to remove the class, we would need to replace it with a new block without that class.

I am using the library for the first time today, and this occurred to me as I needed it myself, but it might be a premature request since I am not very familiar. I thought I would open a PR instead of an issue but if there is a better way to do this, or a good reason not to do it, please let me know.

Thanks for the library!

@alberttoledo alberttoledo force-pushed the master branch 4 times, most recently from 0e11d77 to ac77297 Compare September 24, 2019 14:05
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

Successfully merging this pull request may close these issues.

1 participant