question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setContents on an inline editor shows the toolbar

See original GitHub issue

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 to inline in suneditor_build_test.js

Great work on this editor btw, we love it!!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
NickyTopecommented, Mar 31, 2021

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!

0reactions
nuanda744commented, Apr 12, 2021

Thank you so much JiHong, it works 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

setContents on an inline editor shows the toolbar #686 - GitHub
I am using a toolbarContainer to show the toolbar above the title of the document in my app and the toolbar now hides...
Read more >
call setContents for Quill works but then cause an error
It works and specific text shows in the editor but after then it cause a problem. Unhandled exception rendering component: An exception occurred ......
Read more >
TinyMCE 6.3
Selecting a language from the Advanced Typography toolbar ... New option to display the Advanced Code Editor inline instead of in a dialog....
Read more >
API - Quill Rich Text Editor
Quill is a free, open source WYSIWYG editor built for the modern web. Completely customize it for any need with its modular architecture...
Read more >
Integrating inline tinymce editor in a component for a ...
... classic editor block) demonstrates the way how to integrate a tinyMce editor. ... class: 'geom-inline-editor-toolbar freeform-toolbar', ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found