Hi, I'm trying to edit a document with epoz which contains some internal links. If I create a relative link to anchor A and save the document, there are no problems. If I reload the document to make some modifications and save it again, my link becomes an absolute link (which is wrong since my edit_form is different from my view_form). This can be reproduced on the demo site. Is there a way to prevent epoz from converting relative uri ? Sébastien Georget http://purl.org/NET/Georget/Sebastien
Hi This is something I was investigating. I think it's IE's rich text control that's making all links absolute. My concern was to do with using different management and public host names - clearly I was relative links for this. If there's no other way around it, I was considering a processing the output of the rich text control to make links with prefixes of the current document relative. Does that sound sensible/impossible/stupid? Steven Steven Hayles - Computer Systems Developer, sh23@le.ac.uk Learning Technology Section, Computer Centre, University of Leicester, University Rd, Leicester, LE1 7RH Fax (0/+44)116 2525027 WWW <URL:http://www.le.ac.uk/home/sh23> On Fri, 27 Jun 2003, [iso-8859-1] S�bastien Georget wrote:
Hi,
I'm trying to edit a document with epoz which contains some internal links. If I create a relative link to anchor A and save the document, there are no problems. If I reload the document to make some modifications and save it again, my link becomes an absolute link (which is wrong since my edit_form is different from my view_form). This can be reproduced on the demo site.
Is there a way to prevent epoz from converting relative uri ?
S�bastien Georget http://purl.org/NET/Georget/Sebastien
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
If there's no other way around it, I was considering a processing the output of the rich text control to make links with prefixes of the current document relative. Does that sound sensible/impossible/stupid?
Another thing that i found and that probably require server-side output processing: when you modify text format (bold, italic, underline) with Mozilla, you cannot change it with IE later. This is because Mozilla inserts tags like <span style="font-style: italic;"><span style="font-weight: bold;"> and IE inserts <b>,<i> and <u>. Mozilla handles IE tags well but IE fails to recognize Mozilla ones. So maybe we need some global function (say, EpozUnify) to preprocess rich edit data before putting it somewhere... Something like this: context.manage_changeProperties(page_body=EpozUnify(request['page_body']))
participants (3)
-
Sergey Volobuev -
Steven Hayles -
Sébastien Georget