Announcement

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

#1 2010-11-05 11:24:06

castcon
New member
Registered: 2010-11-05
Posts: 1

Why does xinha use an iframe?

I'm considering integrating xinha into a project I work on and I'm curious why it uses an iframe.  Perhaps it's necessary on some level, but if not, I would have vastly preferred the text area to inherit CSS from the rest of the page.

   C
   http://www.businesscms.org

Offline

#2 2010-11-07 00:20:35

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

Re: Why does xinha use an iframe?

Simple reason is, that's largely how the browsers handle contentEditable/designMode, by making a document in an iframe editable.

It's not in any way like using a textarea.


James Sleeman

Offline

#3 2010-11-15 01:12:09

ejucovy
Xinha Community Member
From: NY
Registered: 2010-11-15
Posts: 35
Website

Re: Why does xinha use an iframe?

@castcon, you should still be able to configure the xinha edit area to use the same styles that the rest of your page uses, using either pageStyle or pageStyleSheets:

http://xinha.raimundmeyer.de/JSdoc/Xinh … #pageStyle
http://xinha.raimundmeyer.de/JSdoc/Xinh … tyleSheets

But, as gogo says, all the major HTML/wysiwyg editors use iframes to work with the browser for html editing.

Offline

Board footer

Powered by FluxBB