-
25 Jan 2013 3:13 AM #1
ExtJS and Markdown
ExtJS and Markdown
Hi,
Has anyone implemented markdown, either directly into a 4.x MVC app or by way of a plugin? I am interested in using a markdown editor and preview (e.g. showdown or pagedown) instead of the current htmleditor.
Many thanks,
Dave.
-
28 Jan 2013 1:30 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,681
- Vote Rating
- 435
I'm using pagedown currently (and CodeMirror 3 for code blocks). Pretty simple
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Jan 2013 1:41 PM #3
In an MVC app? I imagine it would be pretty simple for per-page rendering, but I'm not sure how to approach it for MVC ...
Don't suppose you have some sample code you'd like to/can share? You would make my day :-)
-
28 Jan 2013 1:54 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,681
- Vote Rating
- 435
It is using MVC and the code is for a project so I cannot share.
All you really have to do is something like this after a component is rendered:
Code:component.update( new Markdown.Converter().makeHtml(markdown) );Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Mar 2013 3:34 AM #5
ya that's pretty simple !! thanx



Reply With Quote