hectorguo / CKEditor-Markdown-Plugin

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

Please add support for links #7

Closed mkurz closed 8 years ago

mkurz commented 8 years ago

In the demo I could not add a link. Like:

[Google](www.google.com)

Thanks!

hectorguo commented 8 years ago

Well, you can just add link into toolbar of CKEditor, or CKEditor will ignore link tags.

CKEDITOR.replace('editor1', {
        toolbarGroups: [
            {name: 'tools'},
            {name: 'links'}, // this needs to be added
            {name: 'basicstyles', groups: ['basicstyles', 'cleanup']},
            {name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ]},
            {name: 'styles'},
            {name: 'others'}
        ],
        extraPlugins: 'markdown'
    });

I have updated my demo and config code, you can have a try.

mkurz commented 8 years ago

Thanks!