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

Default Quill formats lost when implementing the customTagAttributes and other custom handlers #103

Open
azoof-ahmed opened this issue May 12, 2021 · 2 comments

Comments

@azoof-ahmed
Copy link

When implementing any of the custom functions in the config, such as the customTagAttributes and returning classes as below, it replaces the default classes added by quill. How can I change this so it appends the custom class to the Quill classes instead?

let converter = new QuillDeltaToHtmlConverter(data, {
	  customTagAttributes: (op) => {
		    if (op.attributes.customAttribute) {
			      return {
			        	class: "customClassForTheCustomAttribute`,
			      };
	      	}
	  },
});
@volser
Copy link
Collaborator

volser commented Aug 23, 2021

can you provide an exmaple, please?

@SikoSoft
Copy link

Did you ever get this working? I became curious about this wanting to implement my own srcset attribute for images but don't see this callback actually running at any point.

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

3 participants