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

copy & paste issue #1514

Open
Reloaded2 opened this issue Feb 7, 2025 · 0 comments
Open

copy & paste issue #1514

Reloaded2 opened this issue Feb 7, 2025 · 0 comments

Comments

@Reloaded2
Copy link

Reloaded2 commented Feb 7, 2025

Hi,

I have the following issue:

When I look at the source code, I want to allow all possible HTML attributes.

Example:

<article><div>foobar</div></article>

For this, I have the following settings in SunEditor:

addTagsWhitelist: "*",
pasteTagsWhitelist: "*",
addTagsWhitelist: "*"
attributesWhitelist: { "*": "*", },
strictMode: false,
strictHTMLValidation: false,

However, when using the copy & paste feature, only the text should be copied, without any inline styles.

For example, if I copy a text from Wikipedia, I don’t want to keep inline styles.

Is this possible?

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