taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

Can't move focus to the control because it is invisible, not enabled or of type that does not accept focus #157

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In IE6/FF3.5.7 when I try to insert a PHP-template variable in the 
textarea which has the wysiwyg editor attached I get the above Error 

What is the expected output? What do you see instead?
When I click on any template variable It should be inserted into the 
textarea. But instead I get the Above error message and in Firefox I get 
the following Error:-

uncaught exception: [Exception... "Component returned failure code: 
0x80004005 (NS_ERROR_FAILURE) 
[nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 
(NS_ERROR_FAILURE)" location: "JS frame :: 
http://173.12.111.155/medefusion/interface/patient_file/encounter/letter.ph
p?&set_pid=2 :: insertAtCursor :: line 97" data: no]

What version of the product are you using? On what operating system?
I am using jquery 1.3.2 and the latest jwysiwyg version

Please provide any additional information below.
It would be of great help if Editor can be separated from the textarea 
field( but still somehow use that editor for data in the textarea)  and it 
would be of great help if you can let me know how can I do that.

Original issue reported on code.google.com by giris...@gmail.com on 2 Feb 2010 at 4:32

GoogleCodeExporter commented 8 years ago
Use $('#my-editor').wysiwyg('insertHtml', 'my html here'); instead of.

Original comment by akzhan.a...@gmail.com on 5 Feb 2010 at 2:59

GoogleCodeExporter commented 8 years ago
Hi Akhzan,
    Can you kindly guide me as to where I should change out this Line:-

Following is my Textarea field
 <textarea name='form_body' id="form_body" rows='20' cols='30' style='width:100%'
title='Enter body of letter here' />{$bodytext}</textarea>

 $('#form_body').wysiwyg(); // Are you saying I need to replace this with the
Following Line
  $('#my-editor').wysiwyg('insertHtml', 'my html here'); instead of.

When I did that the editor got removed from the textarea field and still the 
problem
persists. If you want I can send the file as an attachment.  

Original comment by giris...@gmail.com on 17 Feb 2010 at 8:27