You are here

README.txt in CKEditor CodeMirror 8

Same filename and directory in other branches
  1. 7 README.txt
INTRODUCTION
------------

CKEditor CodeMirror module adds syntax highlighting for "Source View" in
CKEditor WYSIWYG editor using CodeMirror Plugin
https://w8tcha.github.io/CKEditor-CodeMirror-Plugin.


DRUPAL 8
-------------------------------

DEPENDENCIES
------------
- CKEditor-CodeMirror-Plugin library
  https://github.com/w8tcha/CKEditor-CodeMirror-Plugin

INSTALLATION
------------
1. Download and install CKEditor CodeMirror module.
2. Download and uncompress the latest CKEditor-CodeMirror-Plugin release and
   rename the folder to "ckeditor_codemirror" such that the resulting path to
   the "plugin.js" file should be:
   "libraries/ckeditor_codemirror/codemirror/plugin.js".

CONFIGURATION
-------------
1. Go to "Administration » Configuration » Content authoring » Text formats
   and editors" (admin/config/content/formats) page.
2. Click "Configure" for any test format using CKEditor as the text editor.
3. Under "CKEditor plugin settings", click "CodeMirror" and check "Enable
   CodeMirror source view syntax highlighting". Make sure that the current
   toolbar has the "Source" button. Adjust other settings as desired.
4. Scroll down and click "Save configuration".
5. Go to node create/edit page, choose the text format with CodeMirror plugin.
   Press the "Source" button.

File

README.txt
View source
  1. INTRODUCTION
  2. ------------
  3. CKEditor CodeMirror module adds syntax highlighting for "Source View" in
  4. CKEditor WYSIWYG editor using CodeMirror Plugin
  5. https://w8tcha.github.io/CKEditor-CodeMirror-Plugin.
  6. DRUPAL 8
  7. -------------------------------
  8. DEPENDENCIES
  9. ------------
  10. - CKEditor-CodeMirror-Plugin library
  11. https://github.com/w8tcha/CKEditor-CodeMirror-Plugin
  12. INSTALLATION
  13. ------------
  14. 1. Download and install CKEditor CodeMirror module.
  15. 2. Download and uncompress the latest CKEditor-CodeMirror-Plugin release and
  16. rename the folder to "ckeditor_codemirror" such that the resulting path to
  17. the "plugin.js" file should be:
  18. "libraries/ckeditor_codemirror/codemirror/plugin.js".
  19. CONFIGURATION
  20. -------------
  21. 1. Go to "Administration » Configuration » Content authoring » Text formats
  22. and editors" (admin/config/content/formats) page.
  23. 2. Click "Configure" for any test format using CKEditor as the text editor.
  24. 3. Under "CKEditor plugin settings", click "CodeMirror" and check "Enable
  25. CodeMirror source view syntax highlighting". Make sure that the current
  26. toolbar has the "Source" button. Adjust other settings as desired.
  27. 4. Scroll down and click "Save configuration".
  28. 5. Go to node create/edit page, choose the text format with CodeMirror plugin.
  29. Press the "Source" button.