Announcement

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

#201 Re: User Discussion & Help » configuring toolbar - how? » 2007-03-26 04:23:11

ray

Unfortunately you cannot control the position of the plugins' buttons (easily)

#203 Re: User Discussion & Help » prototype library submission » 2007-03-26 04:18:31

ray
function submitForm(myForm,message,serverScript,reloadContent)
    {
             myForm.onsubmit(); // you have to trigger this manually, it copies the content of Xinha in the textarea
        var options = {
            method : 'post',
            parameters : Form.serialize(myForm),
            onSuccess : alert(message)
        };
        new Ajax.Request(serverScript, options);
        doSubNav(reloadContent,'content');
    }

#204 Re: User Discussion & Help » Not Working in IE » 2007-03-23 15:24:43

ray

you have a missing parenthesis

 
(Xinha.is_gecko )? [] : ["cut","copy","paste","overwrite","saveas"]

#205 Re: User Discussion & Help » Not Working in IE » 2007-03-23 05:41:34

ray

You have to remove FullScreen from plugins, there's no FullScreen plugin (well, there was one but it's been integrated and doesn't have to be loaded manually anymore)

I know that it was in the NewbieGuide, that was wrong and is now changed

#206 Re: User Discussion & Help » when editing, javascript events still working (IE) !? » 2007-03-23 05:15:13

ray

this is just what happens (similarly) as of revision 793. Actually a check is inserted in the js  of the event that checks if inside the Xinha iframe and then returns false. This happens transparently in inwardHtml()/outwardHtml(), so that you won't be bothered in sourceview

#207 Re: User Discussion & Help » strange problem with pasteHTML in IE » 2007-03-22 13:52:15

ray

Unfortunate, but true. Maybe you could save the selection, check out the related functions I added in http://xinha.python-hosting.com/changeset/794

#210 Re: User Discussion & Help » Tab Key » 2007-03-19 14:11:43

ray

It is not possible in HTML to emulate the behaviour of tabs like in a wordprocessor. The only way to align lines is using tables, which of course is not so convenient

#211 Re: User Discussion & Help » Browser Status Icon Animates When Focusing Textarea » 2007-03-19 07:04:14

ray

While editing the value of the textarea is not changed, this can be done manually by calling the form's onsubmit method, you you can directly get the value from the editor

<INPUT TYPE="button" VALUE="Show Preview" onClick="this.form.onsubmit(); alert(document.getElementById('story').value);">

or

<INPUT TYPE="button" VALUE="Show Preview" onClick="alert(xinha_editors.story.outwardHtml(xinha_editors.story.getHTML())">

I'd like to know, too, why and what seems to be loading all the time...but I have no idea sad

#212 Re: User Discussion & Help » Changing default HR insert values. » 2007-03-17 06:49:42

ray

This is done by the browser as they think it's best...

You could tweak the behaviour of the button as to manually insert a plain hr like this

//put this in your config
   if ( Xinha.is_gecko )
   {
     xinha_config.btnList.inserthorizontalrule[3] = function(e) { e.execCommand("inserthtml",false,"<hr />"); };
   }

You may however notice why the size="2" is put in, default is quite thin smile

#213 Re: User Discussion & Help » Spell Check Languages » 2007-03-14 17:23:39

ray

I'm not familiar with the SpellChecker plugin, but there seem to be options that can  be set via the Xinha.Config object, i.e.

xinha_config.SpellChecker.defaultDictionary = 'en_GB';
xinha_config.SpellChecker.backend= 'php';

Maybe this helps...

#214 Re: User Discussion & Help » Add In Spell Checker » 2007-03-14 16:16:45

ray

"XinhaIFrame_" + id of the textarea

#215 Re: User Discussion & Help » Add In Spell Checker » 2007-03-14 11:49:33

ray

http://xinha.python-hosting.com/ticket/983

Just added the id, is this right for you?

Otherwise the iframe is stored as property _iframe of the Xinha object

var iframe = xinha_editors.yourEditor._iframe;

#216 Re: User Discussion & Help » how to prevent dirrect access to xinha?? » 2007-03-13 14:27:29

ray

Do NOT delete ImageManager if you want to use EFM, there are some shared file in use

don't know about InsertPicture

#217 Re: User Discussion & Help » Add In Spell Checker » 2007-03-13 13:17:17

ray

1. http://xinha.gogo.co.nz/punbb/viewtopic.php?pid=1537 (link taken from FAQ)
2. xinha_editors.yourEditor.whenDocReady(functionToCall)

#218 Re: User Discussion & Help » Getting a value from dynamic created xinha problem » 2007-03-13 13:11:40

ray

Should work from what I see, more details/ a page to look at might provide deeper insight

#219 Re: User Discussion & Help » how to prevent dirrect access to xinha?? » 2007-03-13 13:10:34

ray

The thing is that you make config.inc.php safe, and configure the directories and permissions you want to allow to your users through the dynamic configuration on a page that you protect. If anybody calls server_name/xinha/plugins/ExtendedFileManager/backend.php?__plugin=ExtendedFileManager&__function=manager directly like you pointed out, they will only get the default settings from config.inc.php.

#220 Re: User Discussion & Help » how to prevent dirrect access to xinha?? » 2007-03-12 16:19:54

ray

I think I understood you quite well. I have edited my above post, I hope it is now clearer what I meant smile

#221 Re: User Discussion & Help » how to prevent dirrect access to xinha?? » 2007-03-12 11:42:04

ray

If you are on a Linux/Unix system: deny writing permission on server_name/xinha/plugins/ExtendedFileManager/demo_images/
Typically this should be already the case by default.

If you are on Windows: edit the config.inc.php file and set

$IMConfig['allow_upload'] = false;

Having done so will prevent anybody who just opens the manger to upload files, because in this case only the default config from config.inc.php is used.

To allow your users to upload file and do anything they want, now use the provided method for configuring EFM by  plugin config described here
http://xinha.python-hosting.com/wiki/Pl … ileManager

(Of course you still have to control the access to the page that legitimately opens Xinha and thus EFM, that should be not such a problem, should it?)

#222 Re: User Discussion & Help » ImageManager color format bug » 2007-03-10 20:20:02

ray

Please be so kind, if you notice a bug, create a ticket. Thanks.

#223 Re: User Discussion & Help » Newbie Guide » 2007-03-08 18:29:54

ray

Sorry I don't get a concept of your configuration, please be more concrete. What does body.js and head.js mean?

Of course as always, URL is fastest and easiest

#225 Re: User Discussion & Help » Newbie Guide » 2007-03-06 13:03:05

ray

@hobet:
1. remove FullScreen from the plugins (this was an error in the NewbieGuide)
2.

  <script type="text/javascript" src="/xinha/my_config.js"></script>

you don't this line when you have the xinha config stuff in the same page

Board footer

Powered by FluxBB