Closed wutsi closed 3 years ago
thankyou, i will fix it~
@wutsi
hi, i confirming styling code,
i had prepared editing css class, :)
example in editorjs code
tools: {
AnyButton: {
class: AnyButton,
inlineToolbar: false,
config:{
css:{
btn:"ejs-btn"
}
}
},
},
the css class that can be set are
const _CSS = {
baseClass: this.api.styles.block,
hide: "hide",
btn: "btn",
container: "anyButtonContainer",
input: "anyButtonContainer__input",
inputHolder: "anyButtonContainer__inputHolder",
inputText: "anyButtonContainer__input--text",
inputLink: "anyButtonContainer__input--link",
registButton: "anyButtonContainer__registerButton",
anyButtonHolder: "anyButtonContainer__anyButtonHolder",
btnColor: "btn--default",
toggleSwitch: "toggle-switch",
toggleInput: "toggle-input",
toggleLabel: "toggle-label",
}
counld you write comment if u have any problems at css class
looks good to me
@kaaaaaaaaaaai has is been deployed?
@wutsi its already deployed, in v1.0.3 does it not work?
@kaaaaaaaaaaai did you increment the version of the js file after the fix?
Still doesn't work ! The class of the link is set, but the class in the
When I use
editorjs-button
in a project using bootstrap, the layout of other buttons. Looks likeeditorjs-button
is modifying the style of the classbtn
. Instead, caneditorjs-button
us as class something likeejs-btn
andejs-btn--primary
?