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
Not work with CKEditor 4.6.1 #22
Comments
more details : error : I succeed to debug, you have to replace html chars I suppose something like htmlentyties : var e = document.createElement("_").classList
, e = "undefined" !== typeof e && null !== String(e.add).match(/\[Native code\]/gi)
, g = /[\n\t\r]/g;
CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype, {
type: CKEDITOR.NODE_ELEMENT,
addClass: e ? function(a) {
/* hereis the problem, I don't know if you are supposed to explode with spaces and
* add one by one or if just replace spaces with '+'
*/
this.$.classList.add(a);
return this
} |
Hello Developers, I have the same problem with Ckeditor 4.6.2. When I click the button Markdown, I can not write in the editor. The button can not be deactivated. Can you eliminate this or what do I have to do so that Markdown works? Thanks in advance. |
I'm in the same boat. However, after some playing around with the code I finally got it to work. Here's what I had to do:
Now, after this I got a different error. Something about calling maximize.modes where maximize was undefined (stems from an error in the plugin.js file within this repository). I fixed the plugin.js file and the error went away and I was able to get markdown to work. You can find the plugin.js file under this pull request I submitted: dancinllama@d8b7ef4 Last, if you're a glutton for punishment, you can try to fix the error manually by doing the following:
For whatever reason, it bombs when trying to add multiple classes. This can be fixed with the following:
This seems to be more of a bug in the ckeditor.js though than in the markdown plugin. Hope that helps other folks having the same issue! |
Hey guys,I have debuged this problem sucessfully and thanks a lot with @dancinllama.the fixed can be worked very well with ckeditor 4.6.2 so this is the correct step:
note:split(' ') there must be a space between ' ' it is done.I hope someone test this .in my app ,it is worked very good,and I am tired to test it again. |
On your browser, open developer tools and check the console. Go to your project>ckeditor>plugins>markdown>plugin.js: If you found the same. Replace this with: |
mukarramali's solution solved it for me :) thank you! |
With CKEditor 4.6.1, when I clink on the Markdown button the text disappears and the button can not be toggled after that.
The text was updated successfully, but these errors were encountered: