-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
setContents on an inline editor shows the toolbar #686
Comments
The 2.37.3 version has been updated. |
Thanks for the quick update however unfortunately this still happens in 2.37.3. Setting Not sure if this is intended (or new?) but setContents always seems to set focus at the end of the content, can we possibly add a parameter to specify if focus is needed? I don't have permission to reopen this issue, happy to resubmit if needed? |
Use the editorInstance.setContents(content);
editorInstance.focus(); Um.. The issue is not reproduced. |
In my setup (and when I run the test locally) calling setContents automatically sets the focus, this is undesired. You are correct however, this does not happen in the example page, I will try to recreate from a simple instance and get back to you, thanks for looking at this so quickly again! |
I have the same problem. When I load the page it scrolls down to the editor if I use setContents... |
@nuanda744 Are you using the latest version? |
I'm using the latest version (2.37.4) inside a form rendered by a Google Apps Script Web App. The editor is working well. The only problem is it gets focus (scrolling down in the page) as soon as I load the page. |
@nuanda744 Are there any event functions in use? |
After the SUNEDITOR.create I only use editor.setContents(variable). The variable contains simple html code. |
@nuanda744 If you delete |
Yes. No focus problem without setContents... |
@nuanda744 What is the test environment? |
@NickyTope @nuanda744 |
Thank you so much JiHong, it works :-) |
Hi, I can't be certain which version this started in but when I call setContents on an inline editor it makes the toolbar show, is this behaviour expected?
I am using a
toolbarContainer
to show the toolbar above the title of the document in my app and the toolbar now hides the title on opening any existing document.I have started manually calling toolbar.hide() to get around this but wanted to raise it as an issue.
This can easily be replicated by setting the mode of the
ss
editor toinline
in suneditor_build_test.jsGreat work on this editor btw, we love it!!
The text was updated successfully, but these errors were encountered: