We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to change the class name in the editor or disable the styles?
So i want to remove or change the classname ce-header, that the header can use the default page style.
The text was updated successfully, but these errors were encountered:
Either change the ./src/index.css file or bundle the module without the css and have the styles in a separate file.
./src/index.css
Sorry, something went wrong.
Hello, to override Header I've done this :
// HeaderBulma.js const Header = require('@editorjs/header/dist/bundle.js') class HeaderBulma extends Header { constructor({ data, config, api, readOnly }) { super({ data, config, api, readOnly }) this._CSS.wrapper = 'title' /** * Main Block wrapper * * @type {HTMLElement} * @private */ this._element = this.getTag(); } /** * Get tag for target level * By default returns second-leveled header * * @returns {HTMLElement} */ getTag() { const tag = super.getTag() let headerClass = 'is-'+this.currentLevel.number tag.classList.add(headerClass); return tag; } } module.exports = HeaderBulma
// main.js let editor = new EditorJS({ tools: { header: { class: HeaderBulma, }, } }
I hope it's help you 😉
No branches or pull requests
How to change the class name in the editor or disable the styles?
So i want to remove or change the classname ce-header, that the header can use the default page style.
The text was updated successfully, but these errors were encountered: