-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Style property is undefined #4204
Comments
Hello @sergeymosyakovroko, I'm not sure which workaround you have in mind (there are a couple of code snippets there). Nevertheless, this workaround has been proposed by the community, so I suppose you may have better luck just by asking in #469. Please note that our GitHub issue tracker serves for reporting bugs and new features only. Unfortunately, your request is neither of them, therefore please you should leave your question on Stack Overflow where our team and the community assist other users in solving their issues. Also, since CKEditor is an Open Source software, we believe it’s crucial to share proposed solutions and make others benefit from them. If you have CKEditor license, please contact our support team. You also can ask your implementation questions at Stack Overflow. |
@jacekbogdanski If you think that script error is not a bug then something wrong there. Yes we have license for your product but I am not planning to spend time to ask to fix something there because it is much easier to fix issue in package we use. I thought CKEDITOR team worries about the quality of the product. However it sounds like it is not true. In the following function if style attribute is not presented code will fail. One of the copy paste plugins removes this attribute due to unknown reason to me. Thank you for your support!!! function handleSuperAndSubScripts( element ) {
|
The reason why we are not changing CKEditor 4 code for every request is that we actually care about the quality of the product and would like to keep it regression free for every user. Please, if you are able to provide some reproduction steps or code which would allow us to investigate the issue and make sure that's something which is indeed a CKEditor 4 bug, we would be very glad if you could share it with us.
I really encourage you to contact the support team if you have a license, that's what it's for. |
To reproduce issue I mentioned you need to use snippet code proposed in #469: CKEDITOR.on("instanceReady", function(event) { Then you need to use button "Paste as plain text". Copy paste text from google docs into opened dialog. You need to be sure pasted object contains "span" element. Then you need to press OK button and script error will happen. We are able to reproduce it in Chrome (latest) in Windows and Mac. As I mentioned it will happen because plugin code will remove style attribute from attributes object and when code will try to use it without check it will fail. |
Thank you @sergeymosyakovroko for reproduction steps. @Comandeer since you have been mostly involved in creating this feature, could you take a look at the issue? |
I can confirm the issue. It's also an issue on mobile devices, where we still use Paste Dialog to handle pasting. I'll update the initial post with reproduction steps. |
@Comandeer I am using v4.14.1
This is basically due to this line. I have installed full version of ckeditor. I dont know if this issue is the right one to track. |
I too am facing exactly same issue. Please HELP! |
bvb |
I encountered this issue when copying text which came from a Google Doc and pasting it in the editor with CMD+V.
|
ckeditor4/plugins/pastefromgdocs/filter/default.js
Line 144 in 965f621
We use workaround proposed in #469. However sometimes code does not work due to specific issue where style attribute is not exists because createStyleStack function removes it.
Can we additional check that style attribute is exists please?
Thanks
Reproduction steps
Expected result
Content is pasted into the editor.
Actual result
Error is thrown in the console:
The text was updated successfully, but these errors were encountered: