Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 10:27 AM   #1
lcocea
Junior Member
lcocea began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2025
Device: Readium
Unexpected Editor behaviour with File preview open

In the calibre 8.5 Editor, when the File preview is open, unexpected behaviour occurs when editing an .xhtml file and its associated (linked) .js file:

- While editing the .xhtml file, upon automatic refresh of the File preview panel (which is triggered every few seconds), the cursor jumps to a different location in the editor tab, near the top of the file. This occurs on macOS Sequoia but not on Windows 11.
- While editing the .js file, upon automatic refresh of the File preview panel, the tab focus switches from the .js file to the .xhtml file. This occurs on both macOS Sequoia and Windows 11.

This behaviour is not apparent if File preview is not open. I have not checked on Linux.

What am I missing?
lcocea is offline   Reply With Quote
Old Yesterday, 11:45 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,311
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Neither of those replicate for me. Presumably your js file is doing something that breaks the JS used for integration between the preview panel and the editor. Again, let me emphasize, ebooks are not platforms for running arbitrary applications. Be conservative in what you try to do with JS.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
smarten punctuation in file preview of tag-editor rjwse@aol.com Editor 11 09-07-2023 12:44 PM
Unexpected behaviour of the Calibre "e-book editor" WalterWalter Editor 2 02-18-2022 05:24 AM
I clicked on the X in the Editor File Preview Window HappyCalibreUser Editor 8 01-31-2022 11:29 AM
File preview out of sync with editor Phssthpok Editor 6 06-01-2018 11:09 AM


All times are GMT -4. The time now is 07:49 PM.


MobileRead.com is a privately owned, operated and funded community.