Announcement

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

#326 Re: User Discussion & Help » How to wrap elements in a div? » 2007-01-15 17:40:39

ray

Using the range object in Mozilla you are able to find out the nodes where the selection starts and ends, see http://developer.mozilla.org/en/docs/DOM:range. Unfortunately the range object in IE as well as the documentation on msdn are dreadfully insufficient, see http://msdn.microsoft.com/workshop/auth … trange.asp. In short it is hard to impossible to work with nodes with IE textRange object, as the moving methods work with categories like character and sentence.

In fact the documentation is a joke. What is one supposed to do with vague statements like "Modify the extent of the text range by moving its start and end positions with methods such as move, moveToElementText, and findText." instead of a comprehensive list of the methods available???

#327 Re: User Discussion & Help » all buttons stay gray » 2007-01-15 14:03:49

ray

As this obviously does not seem to be a known bug, I'd ask you to look at this topic http://xinha.gogo.co.nz/punbb/viewtopic.php?id=899, otherwise I see no means how we could at all find out what your problem may be. Especially, do you have any javascript errors?

Additionally I have to mention that this is not a drupal support forum

Kind regards
ray

#328 Re: User Discussion & Help » IE bug when using alt-tab » 2007-01-15 07:44:55

ray

Hi, fixed this in rev [655]. Added hotfix2

FYI: this.is_gecko is undefined, thus disabling the whole function. Actually it's Xinha.is_gecko

#329 Re: User Discussion & Help » Fullscreen Toolbar order » 2007-01-14 23:11:54

ray

That should absolutely not happen, as there is nothing much more happening than resizing the editor when going into fullscreen. I can't explain that sad

#330 Re: User Discussion & Help » IE bug when using alt-tab » 2007-01-14 07:39:59

ray

Please create a ticket if you find any bugs

#331 Re: User Discussion & Help » XinhaCore.js / htmlArea.js » 2007-01-14 07:12:44

ray

Yes, you are right. htmlarea.js is only still included to make the transition softer and don't break existing installations

#335 Re: User Discussion & Help » Xinha is no longer compatible with HTMLArea launch code » 2007-01-06 08:08:11

ray

hmm...actually I think it still does work (tried it out with an example from rev 2)

#336 Re: User Discussion & Help » Help Image Manager » 2007-01-04 08:09:28

ray

If the line

require_once(realpath(dirname(__FILE__) . '/../../contrib/php-xinha.php'));

is in plugins/ImageManager/config.inc.php it seems the file is found otherwise you would get an error message saying something like

Fatal error: main(): Failed opening required '' (include_path='.;c:\apachefriends\xampp\xampp\php\pear\') in C:\apachefriends\xampp\xampp\htdocs\xinha\plugins\ImageManager\config.inc.php on line 286

but if xinha_read_passed_data() nevertheless is undefined this can only mean that you have to update contrib/php-xinha.php

#337 Re: User Discussion & Help » Have a look at my new plugin: InsertSnippet » 2007-01-04 07:59:22

ray

I have commited a new version that contains a readme file. I hope this clears your questions smile

#339 Re: User Discussion & Help » <strong> instead of <span style="font-weight: bold;"> » 2006-12-20 11:44:37

ray

yes this seems to be impossible
http://xinha.gogo.co.nz/punbb/viewtopic.php?id=790

EDIT:
Sorry, this would be: no this does not seem to be impossible. Don't know why I got this wrong

#341 User Discussion & Help » READ THIS if something doesn't work and you want a quick answer... » 2006-12-19 12:35:36

ray
Replies: 1

...include an URL to your page, so that other users can have a look at your HTML/JavaScript and help you spot the error.

Also include:
* the browser used
* the Xinha revision you are using (click on the [i] icon in the toolbar, look at the version tab)
* any JavaScript error messages that may occur

If you have searched the forum and the tickets for the issue and haven't found anything, it seems you are the first one to experience this.
In that case it is unlikely that anybody can help you, if you do not provide enough information!

#342 Re: User Discussion & Help » <strong> instead of <span style="font-weight: bold;"> » 2006-12-19 11:52:44

ray

To my knowledge Xinha does and always has used  <strong> for bold text in either browser.
Is it IE 6 or 7?

#343 Re: User Discussion & Help » ie not working ---htmlarea.js line 113 » 2006-12-19 06:08:36

ray

It would be easier to find a solution if we could have a look at the resulting HTML, as the php part is of no importance, except for this part:

<textarea name="content" id="content" cols="50" rows="15"> <?php echo htmlspecialchars(stripslashes($content));?> </textarea>

see http://xinha.python-hosting.com/wiki/Entize

#344 Re: User Discussion & Help » HtmlEntities plugin » 2006-12-16 09:09:58

ray

Entities are generally not used inside the editor, both browsers, except &, ", <, >

This is OK if you use UTF-8 encoding in your page, or you surely only use characters that are available in your charset.

The HtmlEntities plugin cares for the conversion of "special characters" to entities which is

Technically it works very simple: It takes a long list of characters and their respective entity and fills the config.specialReplacements variable with them.

This list of entities used can be found and edited in the plugin directory. If you choose to edit the list, you can (should) save it under a new name and reference this by using

xinha_config.HtmlEntities.EntitiesFile = "/path/to/your/file.js"

Then you can update Xinha without overwriting your changes

#345 Re: User Discussion & Help » Multiple Editors don't work » 2006-12-12 17:04:34

ray

yeah, thats right
simply pull xinha_editors out of your config
Page:

 
<script type="text/javascript">
xinha_editors =
      [
        'myTextArea'
      ];
</script>
  <script type="text/javascript" src="../htmlarea.js"></script>
  <script type="text/javascript" src="config.js"></script>

config.js:

 
    //xinha_editors = null;  <-------------------------------- Don't forget this!
    xinha_init    = null;
    xinha_config  = null;
    xinha_plugins = null;

    // This contains the names of textareas we will make into Xinha editors
    xinha_init = xinha_init ? xinha_init : function()
    {
      /** STEP 1 ***************************************************************
       * First, what are the plugins you will be using in the editors on this
       * page.  List all the plugins you will need, even if not all the editors
       * will use all the plugins.
       ************************************************************************/

#346 Re: User Discussion & Help » Multiple Editors don't work » 2006-12-12 05:44:34

ray

One simple question: Do you have each textarea in your HTML?

#347 Re: User Discussion & Help » Multiple Editors don't work » 2006-12-08 15:33:32

ray

Sorry, I couldn't reproduce what you describe. (Sorry for copy/paste)

Which browser?
Any JS errors?

#348 Re: User Discussion & Help » <ul> problems » 2006-12-08 15:31:36

ray

Sorry, I couldn't reproduce what you describe

#349 Re: User Discussion & Help » Strange error in Firefox on popups » 2006-12-08 15:31:21

ray

Sorry, I couldn't reproduce what you describe

#350 Re: User Discussion & Help » How do I Resize the editor? » 2006-12-08 15:22:02

ray

/**
*  Size the editor to a specific size, or just refresh the size (when window resizes for example)
*  @param width optional width (CSS specification)
*  @param height optional height (CSS specification)
*  @param includingBars optional boolean to indicate if the size should include or exclude tool & status bars
*/
xinha_editors.myTextArea.sizeEditor = function(width, height, includingBars, includingPanels)

Board footer

Powered by FluxBB