Source reference issue with Templates

  •  03-10-2011, 5:08 AM

    Source reference issue with Templates

    Hi there,
     
    We have recently developed some HTML templates for our application with the intention that users can select from a choice of these templates using the 'Insert Templates' icon.

    We found a problem when importing the HTML in that the <img src=""> starts from the root of the cuteEditor directory rather than the root of the virtual directory, which results in the incorrect folder being referenced. We didnt have any problems with "background-image:url()" css property.
     
    Example:
     
    <td width="150" height="108" align="center" valign="middle"><img src="../uploads/logo.png" width="100" height="100" /></td>
     
    will result in:
    <td width="150" height="108" align="center" valign="middle"><img src=http://localhost/APPLICATION/Shared/Editor/uploads/logo.png" width="100" height="100" /></td>
     
     
    Hope you can help
     
    Regards
     
     
View Complete Thread