Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2010-05-29 06:36:04

tbertrand
New member
Registered: 2010-05-25
Posts: 3

is it possible to protect some items in the textarea ?

Hi,

When I load Xinha, I'd like to have some items in the document that the users are not allowed to change (for example a logo, a username previously generated through php, the date, and so on...).

Is it possible ? For example, in my code below, is it possible to protect the image (logo.jpg), the name and the date against any modification from the user ?

<p> <img height="154" width="861" src="/xinha/plugins/ExtendedFileManager/demo_images/logo.jpg" alt="logo" title="logo" /></p> <p> </p> <p> </p>  <p>Name : JOHNSON</p> <p>Date : 2010/05/29</p>  <p> </p>


I think of something like <p readonly> ...... </p> for example

any solution ?

Offline

#2 2010-05-29 09:27:00

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: is it possible to protect some items in the textarea ?

No it's not possible.  I think probably it's unlikely to ever be possible because of how the web browsers and Xinha works.  Of course, you could validate/fixup the HTML when you get it back to the server.


James Sleeman

Offline

Board footer

Powered by FluxBB