Provides an AJAX API for creating filtered content by applying drupal input filters.

Features

  • supports BBCode, Markdown, Textile, HTML, PHP, and any other markup system provided as a drupal module
  • provides an ajaxified version of check_markup() of drupal
  • provides "access ajax markup" user permission
  • fully integrated into BUEditor. Button code:
    6.x-1.x: php: return module_invoke('ajax_markup', 'on') ? 'js: eDefAjaxPreview();' : '';
    6.x-2.x: js: E.prvAjax();

How to integrate (for developers)

  1. Load the API by calling ajax_markup_on() at server side.
    <?php
    if (module_invoke('ajax_markup', 'on')) {
     
    drupal_add_js(YOUR_SCRIPT.js);
    }
    ?>
  2. Inside YOUR_SCRIPT.js call $.ajaxMarkup
    $.ajaxMarkup(INPUT, INPUT_FORMAT, CALLBACK);

    function CALLBACK(OUTPUT, SUCCESS, REQUEST) {
      if (SUCCESS) $('div#preview').html(OUTPUT);
      else alert(OUTPUT);
    }

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0 tar.gz (9.07 KB) | zip (10 KB) 2011-Oct-20 Notes
6.x-1.1 tar.gz (9.09 KB) | zip (10.03 KB) 2011-Oct-20 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (9.07 KB) | zip (10 KB) 2011-Nov-02 Notes
6.x-1.x-dev tar.gz (9.09 KB) | zip (10.03 KB) 2011-Nov-02 Notes

Project Information


Maintainers for Ajax markup

  • ufku - 11 commits
    last: 1 year ago, first: 3 years ago

Issues for Ajax markup

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants