Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By rode on
Trying to figure out how to add the Markdown plugin for CKEditor? http://ckeditor.com/addon/markdown
Can anybody guide me in the right direction?
Comments
Why not just install https:/
Why not just install https://www.drupal.org/project/markdown which adds an input filter for markdown syntax so you can use it alongside your text editor.
-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien
It require an extra PHP library
Hi digital construct.
Thanks for your reply.
I looked at that module, and tried to install it, but can't get i to work.
It seems to depend on "PHP Markdown Lib" PHP extension - and I dont have access to add PHP modules. :(
I've not used this modiule
I've not used this modiule before but if it depends on a library script, you install the library at /sites/all/libraries/ in your drupal installation.
Mkae sure to have the library module installed: https://www.drupal.org/project/libraries
-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien
Almost there, and not at all..
Ahh! It looks like I misunderstood the function of the /libraries function ;)
Now the module is working... but the integration with CKEditor is horrible.
When you change "mode" from wysiwyg to source, and back. All the things you write in markdown, is then wrapped in html, and it all looks wrong.
I think the best way would be, to use the CKEditor markdown plugin?! But how can I install it?
CKEditor plugins are
CKEditor plugins are Interfaced into Drupal 8. Each CKEditor plugin is installed like any other Drupal 8 module. Official API documentation.
_
Can you explain what this means? CKEditor plugins are not Drupal 8 modules.
- Brendan
It means that a CKEditor
It means that a CKEditor Plugin uses an interface which actually packages the CKEditor plugin inside of an actual drupal 8 module. It like placing a package inside of your car. The Package is NOT the Car. In this fashion a CKEditor plugin is not a Drupal 8 module although is can reside inside one using the interface created by the CKeditor core developers to communicate with the core CKEditor assets and module.
Perhaps, you need to nebale
Perhaps, you need to enable the filters. url admin path: /admin/config/content/formats
select the filter you want like 'Full HTML' and click on 'configure' link. In the Full HTML settings page, under the enabled filter list, check the box for 'markdown' and save.
That might help to keep your markdown markup.
Also, check your report page (admin path: /admin/reports/status), to see if that library is installed correctly.
If that still doesn't produce the results you want, try this guide here to install plugins: http://margotskapacs.com/2014/05/adding-ckeditor-plugins-manually-in-dru... (it's for drupal 7)
-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien