Double Click disabled on Form Element
Added by Majid Darabi 10 months ago
Hi
I extend elrte to support form elements. Everything is OK, but when I bind double click to form elements (to editing), In elrte editor, It does not work.
Thank you very much
Replies (6)
RE: Double Click disabled on Form Element
-
Added by Troex Nevelin 10 months ago
Can you show an example? I really don't get what have you extend?
RE: Double Click disabled on Form Element
-
Added by Majid Darabi 10 months ago
Majid Darabi wrote:
Hi
I extend elrte to support form elements. Everything is OK, but when I bind double click to form elements (to editing), In elrte editor, It does not work.
Thank you very much
Hi
I upload program on http://darabi.hostzi.com/
The 7 added buttons create form elements. The language for this part is Persian.
RE: Double Click disabled on Form Element
-
Added by Troex Nevelin 10 months ago
Looks very interesting...
when I bind double click to form elements...
How do you bind these actions and what for? Do you want to bind some actions to elements that you create in editor? Or you mean the problem is that you cannot insert text inside <input type="text"> and <textarea>?
RE: Double Click disabled on Form Element
-
Added by Dmitry Levashov 10 months ago
Iframe with "designMode" has own document, so you need use iframe's document instead of current window document
RE: Double Click disabled on Form Element
-
Added by Majid Darabi 10 months ago
Hi
First of all thank you very much for your answers.
Second, I try to explain clearly.
When a user click on each form elements in toolbar, a related dialog opens and user can define parameters. Then User click OK button and I get the parameters and create the element. After this step, two problem occurs.
1. when a user try to write in text field or text area he or she could not do that (the elements not active)
2. I want to bind a double click function to each form elements to editing it. for example when a user double click on text field, related dialog opens and user changes the parameters and save it. But now, the double click or click not enable ( in the new version of program that uploaded to http://darabi.hostzi.com/ , I bind a alert('hello') function when double click fire for text field. But when you double click on text field nothing happen !!!
( I'm sorry for my english writing !!!)
To Dmitry Levashov: I do not understand what you mean . Could you please explain more.
RE: Double Click disabled on Form Element
-
Added by Majid Darabi 10 months ago
Hi
I forgot to mention that I do not use bind function of jquery (using bind function does not effect). I add ondblclick attribute with value alert('hello') to text fields. You can see this code on line 6312.
(1-6/6)