From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [ANN] Editable HTML export of Org-mode files Date: Tue, 30 Oct 2012 10:56:47 -0600 Message-ID: <874nlbaoen.fsf@gmail.com> References: <87pq6ua0kk.fsf@gmx.com> <50843E8D.4010305@gmx.de> <877gqitf70.fsf@gmx.com> <50883F59.10907@gmx.de> <87625utyi7.fsf@gmail.com> <508D50DF.7020200@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTF86-0002k5-4x for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 12:57:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTF80-0001FA-Ap for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 12:57:30 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:43482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTF80-0001F6-5q for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 12:57:24 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so926729ied.0 for ; Tue, 30 Oct 2012 09:57:23 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nitin Agarwal Cc: emacs-orgmode@gnu.org Nitin Agarwal writes: > The edit button appears only for the content of the subheadings or > headings of the document. Look at the call to `org-export-define-derived-backend' in line 107 of org-ehtml-client [1]. Notice that it defines editable versions of the existing html export functions for each of the types listed (paragraph, plain-list, etc...). These types correspond to org-mode elements as defined by org-elements.el. To make the content of headlines editable, you should define a new export function for headlines either using the `def-ehtml-wrap' function or possibly using a new export function. If you do share new code please do so either as diffs against existing code, or as pull requests on github. It is too difficult to find the relevant changes in source code pasted directly into email messages. Cheers, Footnotes: [1] https://github.com/eschulte/org-ehtml/blob/master/src/org-ehtml-client.el#L107 -- Eric Schulte http://cs.unm.edu/~eschulte