Announcement

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

#26 Re: User Discussion & Help » trouble with "{" and "}" - don't want them to convert » 2011-10-28 02:05:44

That setting does not do what you think it does - it forces all high-ascii (greater than 7 bit) characters to be url encoded even when they normally are not, but it does not affect what happens to lower ascii characters at all.

If you are in chrome, hit CTRL-SHIFT-J now and type into the console:

  escape("{")

and you will see that indeed, it is escaped to %7B by the browser.

That's just how javascript's escape() function works. 

Your best solution is to use some string manipulation on your end to replace %7F with { and %7D with } once you have the content out of Xinha.

#28 Re: User Discussion & Help » Xinha .js and .css files substituded by "sh: java not found" » 2011-09-23 20:51:55

This issue was identified and protected against 1 year ago in http://trac.xinha.org/ticket/1515

The source of this is...
  contrib/compress.php
  contrib/compress_yui.php
you should delete these files (or add a .htaccess etc, see the ticket and revision)

#29 Re: User Discussion & Help » Event Handling - Need to get TextArea value when user leaves TextArea » 2011-09-18 20:25:50

You should just call the event handler directly from the SaveOnBlur function.

SaveOnBlur.prototype.xinha_update_textarea = function () {
    this.editor._textArea.value = this.editor.outwardHtml(this.editor.getHTML());
    myEventHandlerHere();
}

#30 Re: User Discussion & Help » Xinha post with Mootools » 2011-09-05 19:47:10

You must call the DOM0 onsubmit of the form (ie yourform.onsubmit() ).  Or use yourxinha.getHtml() to get the HTML and add it into the textarea yourself.

#31 Re: User Discussion & Help » how to initialize Xinha within body tags ??? » 2011-08-18 19:56:08

Just initialize Xinha after you display the block.  How you go about doing that is entirely dependant on your own Javascript code.

#32 Re: User Discussion & Help » Why there so few "stable" versions » 2011-08-15 20:00:42

I think most people use a checkout from the trunk which you are happy with (I'd suggest, the current head) along with their own modification as necessary.

"Releases"  have never been a priority or much other than arbitrary lines in the sand.

#33 Re: User Discussion & Help » ExtendedFileManager:insert a thumb image with a link to the normal one » 2011-08-11 21:21:20

Personally, I would set a class on the image, and then use javascript where you are using the HTML produce by Xinha to link up the images with that class.  That would be the easiest way.  Or even just modify EFM to put an onclick on the image would probably work.

#34 Re: User Discussion & Help » Set css class for hyperlink » 2011-08-10 20:09:48

Err, add your CSS stylesheet where you use the HTML you create in Xinha.

Or if you want the CSS to apply within the Xinha editor, add it to the pageStyleSheets config...

xinha_config.pageStyleSheets = ["/css/myPagesStyleSheet.css","/css/anotherOne.css"];

#35 Re: User Discussion & Help » ExtendedFileManager:insert a thumb image with a link to the normal one » 2011-08-08 19:55:18

ExtendedFileManager.js

Search for: "var img = image;"

Just below there is the code that inserts or updates the image in the content from the selected image in the EFM, so somewhere there you will want to do your wrapping in an achor and modification of the sizes to make it thumbnailed.

#36 Re: User Discussion & Help » problem when try to insert an image » 2011-08-07 21:09:08

Reduce the error_reporting setting in your PHP (you may need to search the ExtendedFileManager files to see if it sets it's own, I doubt it does though, so just your .ini setting will likely be all that is required.

#37 Re: User Discussion & Help » My javascript only works in Chrome, not in i.e. nor in FF » 2011-08-04 21:36:21

$("#ins_news").submit(function(){    
    testo = xinha_editors.areapress.getEditorContent();

    titolo = ins_news.titolo.value;

I see some likely problems straight away.

testo and titolo are not declared, so they are global variables, I doubt you want that.
ins_news is not declared, so it is a global variable, and possibly isn't defined at all!

For example, you should better have code like...

$("#ins_news").submit(function(){    
   var titolo, testo; 
   var ins_news = $('#ins_news');

    testo = xinha_editors.areapress.getEditorContent();
    titolo = ins_news.titolo.value;

#38 Re: User Discussion & Help » sethtm() error in IE » 2011-08-04 21:29:49

Upgrade to latest trunk and try there.  Also search forum here for IE9 problems.

#39 Re: User Discussion & Help » Xina Editor doesn't appear » 2011-08-04 21:28:45

Very likely a permissions/path issue.

Look at the server logs (or use a browser like Chrome or Firefox which can tell you) and see the 404 or other server errors which are being thrown because your permissions or paths are incorrect.

#40 Re: User Discussion & Help » use xinha on ajaxed textarea » 2011-07-20 05:09:26

I expect you'll need to create your own initialisation routine, the example "xinha_init" won't be for you.  Read the function, see what it does, and write your own to do what you need when you need it. 

Read these methods:

Xinha.makeEditors
Xinha.startEditors

in the XinhaCore.js

At a minimum, you need to create a Xinha object and then call generate on it

  var ed = new Xinha(your_textarea, your_xinha_config);
  ed.generate();

#41 Re: User Discussion & Help » Using Extended File Manager...setting defaults for some inputs. » 2011-07-13 20:29:57

You should use CSS to do it where you USE the content you created in Xinha, not in Xinha itself. 

Use Xinha to create HTML, use that HTML somewhere, and use CSS in that place to enforce your style concerns.

If it is to be used in an email (email clients have bad CSS support), I would suggest just using a regexp to match all img tags and make sure they include hspace/vspace as necessary  - again, nothing to do with Xinha.

#42 Re: User Discussion & Help » 'Linker' plugin - configuration - problems... » 2011-07-13 09:43:05

It goes in your Xinha configuration in "Step 3".

Eg in the testbed.html, that's around Line 89

http://trac.xinha.org/browser/trunk/exa … d.html#L89

Naturally you need to ensure that your Xinha config is processed by PHP!

All you are doing is using the xinha_pass_to_php_backend() PHP function to put some stuff into your Xinha's config object in a tamper-proof manner.

#43 Re: User Discussion & Help » Help transfert PHP'S variable to EMF » 2011-06-14 08:16:07

I would just stick your user id in the PHP session, and then modify the PHP code in ExtendedFileManager to look for the user id there and ... do whatever it is you want to do with it.

Don't mess about trying to pass it on URLs and such, just use the PHP session.

#44 Re: User Discussion & Help » ExtendedFileManager plugin problem » 2011-05-30 20:15:56

Is the file in which you have the above PHP statements actually being executed by PHP?  Looks like it is "testbed2.html" which in at least typical default server setups would not be parsed by PHP.

#45 Re: User Discussion & Help » Help xinha converts "<'some text'> to tags when inserting to editor... » 2011-05-11 22:42:23

The clue is in the method name, "insertHTML", is what you are inserting valid HTML, no it is not.

Valid HTML would be "this is a test to insert to <the editor>"

#46 Re: User Discussion & Help » Hyperlink problem » 2011-05-07 03:44:53

That is the Linker plugin.  Do not enable the Linker plugin if you don't want to use it.  The normal create link dialog will show which does not have a tree structure.

#47 Re: User Discussion & Help » Minimum height fixed? » 2011-04-29 21:27:22

I dont' recall if Xinha itself sets a minimum but the browser might.

If Xinha does, you'll find it in XinhaCore.js I expect in the method which sizes the editors (going from memory, oddly enough called _sizeEditor)

#48 Re: User Discussion & Help » HTML is muddled when submitting » 2011-04-20 21:16:55

Sounds a bit like magic quotes is switched on.

#49 Re: User Discussion & Help » Problems after upgrading os » 2011-04-16 04:57:04

I am not aware of any problem with Firefox in trunk.  If you have a problem with Firefox in trunk, must be your computer.  You will have to debug it.  Use Firebug to observe errors.

#50 Re: User Discussion & Help » Problems after upgrading os » 2011-04-15 20:28:37

You don't even say what browsers you are using.

Upgrade to trunk.

Board footer

Powered by FluxBB