hectorguo / CKEditor-Markdown-Plugin

Markdown Plugin for CKEditor
http://hectorguo.github.io/CKEditor-Markdown-Plugin/
112 stars 24 forks source link

Markdown button does not show up, only Source button #14

Open hiphigi opened 8 years ago

hiphigi commented 8 years ago

I tried adding the extraPlugins setting to the instance of CKEditor and to the config.js file, like so:

CKEDITOR.replace('inbox-reply-input', { customConfig: 'config.js', extraPlugins: 'markdown' });

config.js `CKEDITOR.editorConfig = function(config) { config.extraPlugins = 'markdown'; config.toolbar = [ { name: 'clipboard', items: ['Undo', 'Redo'] }, { name: 'editing', items: [ 'Scayt'] }, { name: 'links', items: ['Link', 'Unlink', 'Anchor'] }, { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] }, { name: 'tools', items: ['Maximize'] }, { name: 'document', items: ['Source', 'Markdown'] }, '/', { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] }, { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote'] }, { name: 'styles', items: ['Font', 'FontSize', 'TextColor'] }

];
config.skin = 'bootstrapck';
config.height = '100px';

};`

Neither method presents the "Markdown" button/option up top. Here is a screenshot. http://i.imgur.com/Of8IOFX.png

glynhudson commented 8 years ago

same issue here. Tested with ckeditor 4.4.7 and 4.5.7

glynhudson commented 8 years ago

My source code shows the markdown module is loaded "js_conf": { "extraPlugins": "\'markdown\'" } but markdown button does not display

mikeschuld commented 8 years ago

Getting the button to show was as simple as adding 'Markdown' after 'Source' in my toolbar config. Maybe try that on your end and see if it works. Here's my full config with it working right now:

config.toolbar = [
    { name: "styles", items: ["Format"] },
    { name: "basicstyles", items: ["Bold", "Italic", "Underline"] },
    { name: "paragraph", items: ["NumberedList", "BulletedList", "-", "Outdent", "Indent",] },
    { name: "links", items: ["Link", "Unlink", "-", "HorizontalRule"] },
    { name: "tools", items: ["Maximize"] },
    { name: "document", items: ["Markdown"] }
];
mmilutinovic013 commented 7 years ago

I've got the same issue here running CKEditor 4.5.6. Did not have luck with adding 'Markdown' after 'Source'. Can anyone else report another way that they got this working? I'm gonna see if I can find a workaround and throw up a patch if I come up with a solution.

https://github.com/elmsln/elmsln/issues/1222