CiviCRM Forums
News: You can learn more about CiviCRM from our new free book: Understanding CiviCRM. Also Check the CiviCRM Blog for updated information on CiviCRM
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 02, 2010, 09:10:42 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Markdown  (Read 94 times)
jyee
I’m new here
*

Karma: 0
Offline Offline

CiviCRM: 3.1.5
CMS: Drupal
MySQL: 5.0
PHP: 5.2.6

Posts: 6


View Profile
« on: July 30, 2010, 09:05:59 am »

I'm trying to create a markdown filter for civi and having a nightmare of a time figuring out where to hook into the system.

I think my general problem is that civi uses wysiwyg (or just a textarea) to generate html on the input... then nothing happens on the output (html straight to the browser).  For markdown, it's the opposite: users write markdown that needs no filtering on the input, then markdown needs to generate html on the output.  Any thoughts on the best way to pass all civicrm output through markdown to create html?

p.s. i tried a civicrm_buildForm() looping through $form->_values and running markdown against those values, but they didn't seem to change anything (e.g. $form->_values['intro_text'] on a contribution page)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM