Announcement

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

#1 2010-06-10 10:31:57

purplefred
New member
From: Austin, TX
Registered: 2010-06-09
Posts: 3

Toggling between edit and display using xinha?

I got xinha up and running on my site.  It's cool, but I'm a little disappointed, it looks like it might not be able to do everything I want. 

I would like to be able to create a display mode and an edit mode.  In display mode the toolbar will not be present and the content area will be read-only.  In edit mode the xinha will look as normal. 

From everything I have read, there seems to be no way to do either of the two things I need...make read-only and hide the toolbar.  I'm guessing the best thing to do is have two divs, one containing a xinha and one containing a regular iframe, update the text in both as needed and hide/show the divs as needed, so only one is visible at a time.

Is this the best way to do what I want?  Or am I mistaken about not being able to hide toolbar and/or make readonly? 

Thanks,
BT

Offline

#2 2010-06-10 20:34:19

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

Re: Toggling between edit and display using xinha?

You can not switch on/off Xinha (you can of course hide it with display:none or similar AFTER it has been generated).

So yes, you should do so in a different way by taking the HTML and inserting it into a div or such which you manipulate appropriately.


James Sleeman

Offline

#3 2010-06-10 21:13:42

purplefred
New member
From: Austin, TX
Registered: 2010-06-09
Posts: 3

Re: Toggling between edit and display using xinha?

I tried the plan I wrote before and it actually works pretty well...I just write whatever I need to both the xinha and the iframe, and hide or show their containing divs.  Seems to work pretty good.  Not as elegant as I had hoped, but really not too hard of a workaround at all.  Thanks for the response.

Offline

#4 2010-06-11 03:23:57

jamesturner125
New member
Registered: 2010-05-24
Posts: 1

Re: Toggling between edit and display using xinha?

I just followed James' instruction posted above and it seems to do ok now. free pokies

Last edited by jamesturner125 (2010-06-11 03:24:51)

Offline

Board footer

Powered by FluxBB