Frequently Asked Questions
Basic
Can I load/edit/save online documents with Xinha?
- Q: How do I set the content of the editor?
- A: To set the initial editor content, simply put the entized HTML into the initial textarea
- A: To set the content dynamically by Javascript, use the editor.setEditorContent(html) method
- Q: How do I get the edited HTML with?
- A: Use the editor.getEditorContent() method
On the project
- Q: How can I help the project?
- A: Use the editor with eyes open and tell us how to improve it at Github
- A: Localize Xinha to your language (Translating Xinha)
Installation
-
Q: How do I get started? See Newbie Guide
- Q: Do I need a webserver or can I use the script through file:// ?
-
A: You can use it from a CDN if you want, see the Newbie Guide, but ultimately you’re going to need a server to actually do something with your HTML, right.
- Q: How can I change the default editor CSS?
- A: See (default CSS)
Editor usage
- Q: How to insert a
tag ?- Use Shift+Enter (this is the same as you would do in most word processors by the way)
- To change the behaviour of unshifted enter, in Mozilla set
xinha_config.mozParaHandler = "built-in"
. In IE there is no way to change this.
Configuration
- Q: What options are there to make the editor fit my needs? See the Wiki: list of available options
- Q: How can I customize the toolbar? Wiki: xinha_config.toolbar
- Q: How can I make the h1 tag and other tags to be styled the way they will show on my website ? Wiki: xinha_config.pageStyleSheets/xinha_config.pageStyles
- Q: How can I change the default display font ? Font
- Q: Is it possible to start Xinha in fullscreen mode? Full screen
- Q: How can I hide the path bar ? Path bar
- Q: How can I resize the editor ? Resize
Troubles
- Q: Xinha doesn’t load though I have set it up according to the
NewbieGuide
- A: make sure _editor_url is set correctly and all files could be loaded
- A: Check for any
JavaScript
errors
- Q: I have done everything explained in newbie document but the texts are always in English, how can I use my language file ?
- A: Make sure your language file is up to date.
- A: The translation system (i18n) will only work if you have a webserver or run Xinha from CDN.
- Q: My text appears strangely in my textarea ?
- A: You should entitize data put into textareas Entitize data
- Q: Why get the changes only submitted when switching into HTML mode?
- A: If you submit the form using
JavaScript
(form.submit())you must not have a button with id=”submit” in the same form
- A: If you submit the form using
- Q: When i’m using the html code mode, all accented or umlaut characters are converted to normal.
- A: Use the HtmlEntities plugin
Developers
- Q: Is there a list of all the functions Xinha uses? Xinha functions (probably out-dated)
- Q: How do I update the data in the editor? setEditorContent(), getEditorContent()…
Internationalization
- Q: How can I add my language to the Xinha translations?
- A: Translating Xinha
About the plugins
- Q: Is there a tutorial for plugin creation?
- A: Documentation/DevelopingForXinha/PluginTutorial - but see some of the other plugins for practical example!