-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Rich Text Editors you need to click twice #81
Comments
hmm, you might be able to do it in one click; but I think you'd need to then manually 'pop' up the editor via some inbuilt API function for the editor itself. The reason I didn't 'pre-load' CKeditor/TinyMCE etc onto each region was that I was worried that it wouldn't be very efficient to essentially load potentially 40 - 50 instances of CKeditor/TinyMCE (assuming a complex page); IIRC, I never quite got it working on a single click. Bet it's possible though. |
Okay, what elements in the page takes the click event to initiate gridmaster? I thought it may be |
I think you'd have to edit the source for this: gm.rteControl() is where RTE editors are attached on click; the click event is attached to .gm-editable-region > .gm-content IIRC. Basically, on init, there's a initControls() function which has:
The rteControl attaches or destroys RTEs ; so I think what you want to do is put something after line 1165
|
I have tried that exact spot, but was not able to get the tinymce to open. :( Sadly I do not fully understand the RTE code. |
When using with Rich Text Editors (I use tinymce) you have to click in an editable area two times to get the editor up. It seems the first click creates the needed associations and the second click shows it. Once you have clicked on an area at least one time the editor is made and from that point on it takes only one click to bring it up.
How can I make it always be a single click? If a code change is needed, is there a way I can run a jquery code to preclick all the right places (
$('.pointer').toggle('click')
)?Thanks.
David
The text was updated successfully, but these errors were encountered: