-
Notifications
You must be signed in to change notification settings - Fork 61
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
Drag and Drop keeps HTML #156
Comments
@markusbucher-she could you please be more specific about the issue? Any examples that denote the problem in question? Any plunker? |
@bampakoa Thank you for your reply. When copypasting html content from a browser I receive the following result: When draganddropping the same content the following result is visible: How can I treat draganddrop like copypaste here? Best |
You could create a plugin for this case but let's ping @stevermeister to check if this should be a built-in feature 😄 |
I think it depends on browser and OS. |
I also believe that the best approach is to create a custom plugin. @markusbucher-she what are your thoughts? I would be happy to help in case you are interested. |
I would be happy to use such a plugin and appreciate any help @bampakoa |
it's not security reason. |
@stevermeister Okay, I understand. So I will need a plugin for that. Can you point me to the place, where the copy-paste-Action is in the core so that I can use this in my plugin? |
@markusbucher-she Do you have any fork of the repository or shall I create one in mine, so that we can collaborate on the feature? |
@bampakoa I did not create a fork yet. We can use one of yours. |
@bampakoa How can we proceed? Unfortunately this issue is quite urgent... |
@markusbucher-she You can use the Clear Styles plugin to clear any styles of the text, after drag and drop. You can find information on how to activate it in the README file of the repository. I hope it helps! |
For security reasons I must prevent the saving of tags other than |
@markusbucher-she There is already a section for creating a plugin here Check this commit in my fork. Maybe you can contribute to this one so that we can later merge it in the official repo of the ngWig editor. You can use it initially for one editor per page like this:
|
Hi,
I do not find information how to prevent drag-and-drop of html-content with automatic stripping of all html tags. Copy-paste works fine, but I need the same rules for drag-and-drop.
Thank you for your help
Markus
The text was updated successfully, but these errors were encountered: