You are not logged in.
Because time is a precious commodity ![]()
Feel free to test in FF nightlies and report bugs to moz. If you have specifics of something that is incorrect in Xinha then report to Xinha. But I won't bust my nut testing every nightly to see if it breaks something. Especially when you get things like useCSS having it's operation mode changed for no reason, then changed back again after everybody works around the first change.
where are you putting the command? It should look something like...
xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config();
// vvvvvvvvvvvvvv COMMAND HERE vvvvvvvvvvvvvv
xinha_config.stylistLoadStylesheet('http://www.mysite.com/my.css', { '.body' : 'body', '.sub_head2' : 'subhead2'});
// ^^^^^^^^^^^ COMMAND HERE ^^^^^^^^^^^
xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);formatblock is provided by the browser. I believe that only p and h1-6 are handled by the browsers correctly.
The link you gave works just fine for me in Firefox. i suggest you check your firewall/adblocking etc.
Hi all, some little prick "hacked" us again, this time they deleted all the posts.
Last backup has been restored and punbb upgraded.
Here are the details of the said kiddie...
created username: ma
email: melokiy@hotmail.com
IP: 81.213.172.65
Your testcase doesn't show how $texte is filled, or what is in it. Are you sure you are entizing it before it goes into the textarea?
That's still too much rubbish in there to easily see what the problem might be. Allow me to simplify it more
<?php
session_start();
error_reporting(0);
?>
<html><head>=
<script type="text/javascript">
_editor_url = "path/to/xinha/"; // (de préférence absolue) URL (incluant le slash de fin) où Xinha est installé
_editor_lang = "fr"; // Et la langue que nous voulons utiliser dans l'éditeur.
_editor_skin = "xp-blue";
</script>
<script type="text/javascript" src="path/to/xinha/htmlarea.js"></script>
<script type="text/javascript">
xinha_editors = null;
xinha_init = null;
xinha_config = null;
xinha_plugins = null;
xinha_init = xinha_init ? xinha_init : function() {
xinha_plugins = xinha_plugins ? xinha_plugins :
[
'CharacterMap',
'ContextMenu',
'FullScreen',
'ListType',
'SpellChecker',
'Stylist',
'SuperClean',
'TableOperations',
'ImageManager'
];
// CETTE TOUCHE DE JAVASCRIPT CHARGE LES PLUGINS, NE PAS TOUCHER :)
if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
xinha_editors = xinha_editors ? xinha_editors :
[
'ta'
];
xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config();
xinha_config.width = 'auto';
xinha_config.height = '200px';
xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
HTMLArea.startEditors(xinha_editors);
}
window.onload = xinha_init;
</script>
</head>
<body >
<?php
$texte = 'bonjour';
?>
<form method="POST" NAME="form" action="">
<?php
$menu = "<textarea id=\"ta\" name=\"ta\" rows=\"10\" cols=\"80\" style=\"width: 100%\">".$texte."</textarea>\n";
?>
<?php echo $menu; ?>
<input type="submit" value="Submit" name="B1">
</form>
</body>
</html>You really need to simplify this down to a testcase... but what do you mean by "(only display old data when I want to modify)."
Does the example work? If so, then you should follow the newbie guide and make sure everything is correct
You'll have to post a URL where we can view the problem.
I use jedit (http://www.jedit.org/), writen in Java, pretty powerful especially with all the plugins.
The only thing I would like to see really is "code insight" so I can get the order of php function arguments right without resorting to the php manual (I can never remember if it's haystack, needle or needle, haystack - always get it wrong whichever I choose
).
I tried eclipse, but I couldn't make head nor tail of it - probably just not used to working that way. Besides, it's a HUGE freakin download.
Not planned. There is no reason you should do so.
You start by writing <inpuT instead of <inpu
<inpu type="text" name="my_name"><br>
<input type='submit' value='OK'>You will have to post a URL to where we can try this if you want help.
copy, cut, paste do not appear in Gecko
plugins insert themselves in the toolbar, there is not presently a way of configuring these placements.
Post the url to your config.js and to a phpinfo.php file (file containing <?php phpinfo(); ?>) on your server.
Step 5 in the config.
xinha_editors.myTextArea.config.toolbar =
[
["popupeditor"],
["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"],
["separator","forecolor","hilitecolor","textindicator"],
["separator","subscript","superscript"],
["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"],
["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
["separator","inserthorizontalrule","createlink","insertimage","inserttable"],
["separator","undo","redo","selectall"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]),
["separator","killword","removeformat","toggleborders","lefttoright", "righttoleft","separator","htmlmode","about"]
];Yes you should also use jsspecialchars (or your own equivalent). session_start() is required in order before you can use $_SESSION in PHP (and have it actually work). You can use a folder anywhere you want, provided your server doesn't have safe_mode or base_dir restrictions enabled.
Xinha is an HTML editor. You must give Xinha html to edit, and it will give you back edited html. Wether you convert between twiki and html is up to you.
Search the forums, somebody else mentioned they had some success with such an approach recently.
cinha_config.toolbar =
[
["popupeditor"],
["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"],
["separator","forecolor","hilitecolor","textindicator"],
["separator","subscript","superscript"],
["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"],
["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
["separator","inserthorizontalrule","createlink","insertimage","inserttable"],
["separator","undo","redo","selectall"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]),
["separator","killword","removeformat","toggleborders","lefttoright", "righttoleft","separator","htmlmode","about"]
];adjust as you wish.
I don't see a session_start(); call there anywhere. If you don't have one, put it right before $IMConfig = array();
You must have a textarea on the page for each one you have in the config, no exceptions.
Not a xinha problem ![]()
I'd do one of two things,
1. ignore the problem - the only time it would really be an issue is if sombody searched for body , head, strong, address (and any other full-word tags I have forgotten).
2. use strip tags on the output from xinha and insert the stripped content into a special database column used just for searching over.
You would be better to define your own toolbar then you can get it exactly how you want. See the toolbar definition in htmlarea.js
mmjaeger:
Essentially the LGPL is the same as the GPL, except that it's not quite as "viral", you can link LGPL libraries with your closed source code and it doesn't require that you open source your code (GPL does). Neither GPL nor LGPL restrict the licencee to non-commercial use at all. They do restrict you from charging for the source (you can charge distribution costs though), but not from using it commercially. The LGPL is "friendlier" to closed source code than the GPL, which is decidedly unfriendly to closed source code.
I don't know what licence would be best for you, go see your lawyer.