Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    48
    Vote Rating
    0
    davidryan is on a distinguished road

      0  

    Default 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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    48
    Vote Rating
    0
    davidryan is on a distinguished road

      0  

    Default


    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 :-)

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.

  5. #5
    Sencha User
    Join Date
    Mar 2013
    Posts
    3
    Vote Rating
    0
    hemat16 is on a distinguished road

      0  

    Default


    ya that's pretty simple !! thanx