Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7657005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:54:52+00:00 2026-05-31T12:54:52+00:00

I am using the jQuery inline editing plugin Jeditable . Thankfully, Jeditable provides a

  • 0

I am using the jQuery inline editing plugin Jeditable. Thankfully, Jeditable provides a plugin capability for extending the out of the box inline editing it provides.

I am hoping to not reinvent the wheel– as such does a PageDown plugin already exist for Jeditable? If one does my Google-fu is not turning up any results.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:54:53+00:00Added an answer on May 31, 2026 at 12:54 pm

    I never found a ready to go Jeditable PageDown plugin so I wrote my own. The below example is too specific to be used without modification, but should provide a decent enough outline for anyone endeavoring to accomplish a similar task.

    Code to add a “markdown” input type to Jeditable:

    var converter = Markdown.getSanitizingConverter();
    
    $.editable.addInputType('markdown', {
        element: function(settings, original) {
            var editorId = original.id.substring(original.id.lastIndexOf("-"));
            var input = $('<textarea />');
            input.attr('id', 'wmd-input' + editorId);
    
            var panel = $('<div class="wmd-panel" />');
            panel.append('<div id="wmd-button-bar' + editorId + '" />');
            panel.append(input);
            panel.append('<div id="wmd-preview' + editorId + '" />');
    
            $(this).append(panel);
            return (input);
        },
        plugin: function(settings, original) {
            var editorId = original.id.substring(original.id.lastIndexOf("-"));
            var editor = new Markdown.Editor(converter, editorId);
            editor.run();
        }
    });
    

    The above code goes through a bunch of gyrations concerning the elements id, because in my case I can have several editors on a single page. See the PageDown documentation about Markdown.Editor for more details.

    Once I’ve added the “markdown” input type to Jeditable it’s just a matter of utilizing it with this code:

    $('.editable-element-area').editable('http://jsfiddle.net/echo/jsonp/', {
        onblur: 'submit',
        type: 'markdown',
        indicator: 'Saving...',
        loadurl: 'http://jsfiddle.net/echo/jsonp/', // retrieve existing markdown
        callback: function(value, settings) {
            $(this).html(converter.makeHtml(value)); // render updated markdown
        }
    });​
    

    I want my users to see the markdown as HTML when they aren’t editing it so I have to make use of the callback and loadurl Jeditable parameters. The load url retrieves the text to edit in markdown format, while the callback converts the new text back to html.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jquery-ui's draggable for drag-and-drop, and jeditable for inline editing. When I drag
I'm using a jquery plugin for inline editing. But i would like to activate
I am using jquery DataTables and jEditable to allow inline editing of EACH CELL
I'm using a jQuery plugin called toggleEdit for inline editing. Everything works fine when
I'm trying to do inline editing for my website using jQuery so I can
I'm using this jQuery inline datePicker plugin sample but I don't know how to
I wanna implement this using jquery instead of inline but Its not working, inline
I'm using inline calendar of this jQuery inline datePicker plugin. By default the days
I want to develop a test project for inline editing using jQuery. In this
I wrote a simpe inline edit using jquery. The plugin work very well, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.