Announcement

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

#51 Re: User Discussion & Help » xinha adds strange characters » 2008-10-18 08:51:16

ray

The <br /> is put in by Firefox, sorry we can't do much against this. The strange character issue should be fixed in version 0.95 (I suppose you are using an older release; if not so, please report back here)

#52 Re: User Discussion & Help » Using Xinha with ASP » 2008-10-05 11:49:12

ray

There's nothing special you have to do, the editor content is copied to the textarea on submit

#53 Re: User Discussion & Help » Popups » 2008-10-01 08:53:26

ray

We're quite close to the next release which features a new dialog system that will replace the poups. see http://trac.xinha.org/ticket/1176

#54 Re: User Discussion & Help » Does Xinha reload my page somehow? » 2008-09-02 04:43:27

ray

That's not very likely, as you would see it when the page reloads in the middle of things, wouldn't you? If you install Live HTTP Headers (Firefox Extension) you can look at the actual http requests made and see if the script is really requested twice. If not so, the secret probably lies somewhere in your PHP code

#56 Re: User Discussion & Help » Xinha.org » 2008-07-18 04:55:48

ray

Please, by all means, yes! Though it seems, at the first look as if xinha.org is unused, because it is redireted, I find it most important to have a succinct address to be found. Also, it is mentioned in any file of the distribution

#57 Re: User Discussion & Help » SPAM from this site » 2008-07-04 12:46:51

ray

maybe from Ticket #997, which you opened; I believe the trac version we previously had didn't mask the email addresses

#58 Re: User Discussion & Help » Causing Xinha to refresh the textarea » 2008-06-07 10:16:45

ray
//get the HTML
html = editor.getEditorContent();
//set the HTML
editor.setEditorContent(html);

#59 Re: User Discussion & Help » Pre Loading Content » 2008-06-07 06:58:26

ray

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

(Added to FAQ)

#60 Re: User Discussion & Help » How do I know when Xinha is done being created? » 2008-06-07 05:44:28

ray
editorInstance.whenDocReady(function)

Would this be what you're looking for?

#61 Re: User Discussion & Help » force html emphasis tags to i and b » 2008-05-01 08:40:11

ray

This will not work this way as you can't simply put  RegExps in an object like this. Please have a look at this ticket which contains a means to do this http://xinha.webfactional.com/ticket/1201

#62 Re: User Discussion & Help » ExtendedFileManager JavaScript Error » 2008-04-15 18:05:56

ray

Sorry, I can't reproduce the error. Could you give a link to an installation where this happens?

#64 Re: User Discussion & Help » Content Management System & Relative Paths » 2008-04-12 17:05:56

ray

This should work correctly from now on (revision 992)

xinha_config.baseHref = 'http://customersite1.com/';

#65 Re: User Discussion & Help » problems entering mdash » 2008-04-12 16:01:37

ray

Sorry, I can't reproduce the problem. Are you using UTF-8 as charset? If not, try the HtmlEntities plugin

#66 Re: User Discussion & Help » Trying to create a Wiki conversion plugin » 2008-04-12 15:53:25

ray

Use editor.getEditorContent()/editor.setEditorContent(html) to get/set all HTML

To mimic the look'n'feel of the source view it probably would be a good idea to use an inline dialog like Linker. Note that in the near future we will have a new plugin API (see http://xinha.webfactional.com/ticket/1176) that is mostly the same as the inline dialog, so this is also the best way to be future proof

I think the best way would be to  use an iframe in an inline dialog and load all your needed scripts in there

If you have any more questions, don't hesitate to ask

#67 Re: User Discussion & Help » Please help me » 2008-04-12 15:36:47

ray

looks like you are not actually loading Xinha

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

#68 Re: User Discussion & Help » Please help me » 2008-04-12 15:35:56

ray

looks like you are not actually loading Xinha

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

#69 Re: User Discussion & Help » ExtendedFileManager JavaScript Error » 2008-04-12 15:24:06

ray

Are you using a recent version? If not so, please update. If this doesn't solve it, please post a ticket. But I think this is already fixed

#70 Re: User Discussion & Help » need help with install? » 2008-03-25 19:26:40

ray

Only guesswork without seeing the actual HTML, but I suppose the function  tep_draw_textarea_field() produces a textarea without an id attribute? If so and you cannot change this function to do so, you have to do some javascript tricks to get get a grip on your textareas. If these are the only textareas on your page, you could for example do

 xinha_editors = xinha_editors ? xinha_editors :  document.getElementsByTagName('textarea');

#71 Re: User Discussion & Help » editor with ajax: response a new editor, not show » 2008-03-25 19:08:01

ray

Sorry, you have a bit more verbose. What do you want to do? What does the ajax() function do?

#72 Re: User Discussion & Help » stylistLoadStylesheet is not a function » 2008-03-25 19:04:31

ray

xinha_config refers to a instance of Xinha.Config  that is passed to the Xinha constructor as explained in the NewbieGuide, which is the recommended way to setup Xinha. The files and some other examples are also in the folder examples of the Xinha distribution. If you read this, I think you will know how it works.

The _8f does not stand for any object but  for "this" in the Xinha (not Xinha.Config) class, as it seems you have taken and adapted this snippet out of the function Xinha.prototype.generate from the compressed source code. This is only internal code you don't have to mess with. In case you are interested in further reading and understandig the source code (now that your already so deep in it smile) you should not take the compressed code of the distribution, but check it out via svn

#73 Re: User Discussion & Help » Maximum image width » 2008-03-22 07:09:27

ray

If you'd like to see this as a feature, create a ticket, please.

#74 Re: User Discussion & Help » switch between HTML 4.01 und Xhtml » 2008-03-22 06:51:55

ray

No, it's not possible to change that. Do you refer to the closing slashes in img and br tags? That's valid in 4.01, too. Try validating this at http://validator.w3.org

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>Untitled Document</title>
    </head>
    <body>
        <p>
            <img src="/i.gif" alt="test" />
            <br/>
        </p>
        <form action="/">
                <p>
            <input disabled="disabled" type="text" />
                </p>
        </form>
    </body>
</html>

#75 Re: User Discussion & Help » How to integrate ExtendedFileManager into templates? » 2008-03-22 06:30:32

ray

if you rename my_config.js to a .php file, wouldn't it it be parsed on PHP enabled server? If not so, how would ExtendedFileManger's PHP work?

Board footer

Powered by FluxBB