Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 44 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,53 @@ Question2answer Formatter

This plugin provides an option to add MathJax script, Prettify script and a Preview for CKEditor and enables them by default on all pages.

For editor support please use this <a href="https://github.com/arjunsuresh/ckeditor-Q2A">modified ckeditor</a>.
For editor support please use this [modified ckeditor](https://github.com/tangruize/q2a-formatter/releases).

Download the ckeditor and place inside qa-plugin/wysiwyg-editor folder. Also copy qa-question.js file inside tobecopied folder to qa-content folder replacing the file present there.
Download the ckeditor and place inside qa-plugin/wysiwyg-editor folder.

It seems that SnowFlat theme renders math font very small for mobile. [SnowLight](https://github.com/gurjyot/SnowLight) theme doesn't have this problem.

I also recommend you to install [q2apro-warn-on-leave](https://github.com/q2apro/q2apro-warn-on-leave) plugin, which warns the user that text area has been changed when he is leaving.

This is a beta code, use it at your own risk on a production environment.

# Default Configuration
MathJax Configuration:
```
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ [\'$\',\'$\'], ["\\\\(","\\\\)"] ],
config: ["MMLorHTML.js"],
jax: ["input/TeX"],
processEscapes: true
}
});

MathJax.Hub.Config({
"HTML-CSS": {
linebreaks: {
automatic: true
}
}
});
```

MathJax URL:
```
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML
```

highlight.js URL:
```
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js
```

highlight.js Style URL:
```
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css
```

More highlight.js and styles: https://cdnjs.com/libraries/highlight.js/


highlight.js demo: https://highlightjs.org/static/demo/
105 changes: 0 additions & 105 deletions custom.css

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-apollo.js

This file was deleted.

3 changes: 0 additions & 3 deletions pf/lang-basic.js

This file was deleted.

18 changes: 0 additions & 18 deletions pf/lang-clj.js

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-css.js

This file was deleted.

3 changes: 0 additions & 3 deletions pf/lang-dart.js

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-erlang.js

This file was deleted.

1 change: 0 additions & 1 deletion pf/lang-go.js

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-hs.js

This file was deleted.

3 changes: 0 additions & 3 deletions pf/lang-lisp.js

This file was deleted.

1 change: 0 additions & 1 deletion pf/lang-llvm.js

This file was deleted.

2 changes: 0 additions & 2 deletions pf/lang-lua.js

This file was deleted.

Loading