Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-10-25 12:46:18

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Ajax request for textile preview

How work the textile preview in write tab (or comment preview) ?

- It uses textile.php, stores the result in a cache? in the database? and displays the result?

Is it possible to use this preview function through an Ajax request?
For a live preview of a textarea (for write tab or from the front).

Thanks

Last edited by sacripant (2012-10-25 12:47:14)

Offline

#2 2012-10-25 13:51:38

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,659
GitHub Twitter

Re: Ajax request for textile preview

In the “write” tab you’ve got it (tab/icon depending of your TXP version and named “Preview” or “Textile preview”).


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#3 2013-05-27 11:23:38

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Ajax request for textile preview

@sacripant: Yes, the preview can be implemented synchronously with the help of Ajax. Robert hinted to this a bit in this G+ thread. This is why I was playing around with a double pane concept. ;)

Offline

Board footer

Powered by FluxBB