The following is a prototype @button render-as-html
bodyCtrl = c.frame.body.bodyCtrl w = bodyCtrl.widget # A QTextEdit s = bodyCtrl.getAllText() w.setHtml(s) Put the html sources for, say, Leo's home page in a node. Select the node. Click the button. Voila. WARNING: at present, this *replaces* the contents of the node. I'm working on this little glitch :-) There should be a uA telling Leo how to render nodes. A cool idea: allow separate renderings in different body editors. Should be easy to do once I get the above to work. The idea is for a separate render-as-text button to restore the default view. Same as above, except use w.setPlainText(s) Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
