Re: custom edit widget
Jean Jordaan <[email protected]> Mon, 8 Jun 2015 17:42:14 +0700
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CAJqnznAST5rGrWaam7p2U9Yj1Qf=9yDZ9xQTB5RWY1HUkycP5A@mail.gmail.com> |
On Thu, Jun 4, 2015 at 6:44 PM, Espen Moe-Nilssen <[email protected]> wrote: > Hi > > How difficult would it be to make a text widget that does the following: > > 1) Admin adds content > <*t(15,0,"1 ")><t-4>Some text here.<t$> > > 2) Editor edits it, for him/her it looks like > Some text here > > 3) The admin exports it to a text file that contains > <*t(15,0,"1 ")><t-4>Edited text here.<t$> That reminds me of WordPerfect codes :-) Plomino does something along these lines .. You edit richtext and format text in certain styles. Upon export, the styles turn into this kind of XML: """ <p>How many legs ? <span class="plominoFieldClass">legs</span> </p> """ The trick would be to prevent the Editor from messing things up by copying things, adding line breaks, etc. Making the formatting visible (e.g. dotted box outline) might help. -- jean . .. .... //\\\oo///\\ ------------------------------------------------------------------------------