Announcement

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

#601 Re: User Discussion & Help » Xinha Broken in Firefox Nightly » 2005-09-09 03:39:01

Because time is a precious commodity smile

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.

#602 Re: User Discussion & Help » Getting CSS to work » 2005-09-08 06:34:04

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);

#603 Re: User Discussion & Help » Format Menu - strange tags » 2005-09-07 09:11:54

formatblock is provided by the browser.  I believe that only p and h1-6 are handled by the browsers correctly.

#604 Re: User Discussion & Help » Newbie Guide » 2005-09-07 09:09:17

The link you gave works just fine for me in Firefox.  i suggest you check your firewall/adblocking etc.

#605 User Discussion & Help » Script kiddies at it gain. » 2005-09-02 19:56:45

gogo
Replies: 1

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

#606 Re: User Discussion & Help » Newbie Guide » 2005-08-27 05:30:50

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?

#607 Re: User Discussion & Help » Newbie Guide » 2005-08-27 05:28:39

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>

#608 Re: User Discussion & Help » Newbie Guide » 2005-08-25 22:30:16

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)."

#609 Re: User Discussion & Help » Editor works in I.E. but not in Firefox ! » 2005-08-25 22:23:29

Does the example work?  If so, then you should follow the newbie guide and make sure everything is correct

#610 Re: User Discussion & Help » Multiple field in a page with one xinha textarea » 2005-08-25 04:03:05

You'll have to post a URL where we can view the problem.

#611 Re: User Discussion & Help » Quick question - What text editor do you use? » 2005-08-25 00:59:12

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 smile).


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.

#612 Re: User Discussion & Help » Newbie: 2 textareas in config but on page one. » 2005-08-25 00:54:19

Not planned.  There is no reason you should do so.

#613 Re: User Discussion & Help » Multiple field in a page with one xinha textarea » 2005-08-25 00:53:19

You start by writing <inpuT instead of <inpu

<inpu type="text" name="my_name"><br>   
<input type='submit' value='OK'>

#614 Re: User Discussion & Help » Newbie Guide » 2005-08-25 00:26:45

You will have to post a URL to where we can try this if you want help.

#615 Re: User Discussion & Help » plugin sequence » 2005-08-20 11:33:26

copy, cut, paste do not appear in Gecko

plugins insert themselves in the toolbar, there is not presently a way of configuring these placements.

#616 Re: User Discussion & Help » Another ImageManager question » 2005-08-20 11:32:01

Post the url to your config.js and to a phpinfo.php file (file containing <?php phpinfo(); ?>) on your server.

#617 Re: User Discussion & Help » Basic and advanced editors » 2005-08-20 11:28:34

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"]
  ];

#618 Re: User Discussion & Help » Another ImageManager question » 2005-08-20 04:11:18

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.

#619 Re: User Discussion & Help » Xinha WYSIWYG and markup options » 2005-08-20 00:44:04

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.

#620 Re: User Discussion & Help » using config.hideSomeButtons » 2005-08-20 00:41:39

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.

#621 Re: User Discussion & Help » Another ImageManager question » 2005-08-20 00:39:05

I don't see a session_start(); call there anywhere.  If you don't have one, put it right before $IMConfig = array();

#622 Re: User Discussion & Help » Newbie: 2 textareas in config but on page one. » 2005-08-19 06:30:26

You must have a textarea on the page for each one you have in the config, no exceptions.

#623 Re: User Discussion & Help » Search in a BD with xinha text fields » 2005-08-17 21:58:30

Not a xinha problem smile

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.

#624 Re: User Discussion & Help » using config.hideSomeButtons » 2005-08-16 21:39:59

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

#625 Re: User Discussion & Help » iBrowser V 1.3 released! » 2005-08-16 00:54:27

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.

Board footer

Powered by FluxBB