mjxl wrote: ↑Fri Jan 21, 2022 7:08 am
The Monaco Editor is not meant to be used in conjunction with a different one
I've no problem with that. I've managed to "train" the guy who will be editing the site, once I pass it over, to work with the default editor. He's now quite happy to add paragraph and heading tags round his text and even add classes to them. Indeed, I've even got him to use an external editor that allows will add tags around selected text and then paste the stuff into WonderCMS's default editor.
The newtab and email client opening on the "mailto:" links is default behaviour in Chrome (like most browsers)
I've only tested in Firefox so far. I haven't yet tried Edge, but from what you say it's what I should expect.
I've now found that the problem with non-response to CTRL-CLICK is because all links on my site are internal with relative addressing. (e.g. href="contacts" not href="
https://mydomain.com/contacts") It works when an absolute address is in place opening a new tab - BUT it does not check whether I'm logged in so displays the page rather than the editor, so I then have to loginon that page again to enter the editor.
Further found that WonderCMS popup messages such as "WonderCMS successfully updated. Wohoo!" and "This page (capacity-to-litigate) is currently hidden from the menu. Open menu visibility settings" cannot be dismissed by clicking the "X". I have to reopen the page via the Modal to clear such messages.
I may have a solution to that. Perhaps you can confirm...
After removing and installing Monaco again I notice the message
Successfully installed/updated monaco-editor.
Hide all alerts until next login
I guess clicking the "Hide all alerts" link will cure this? Definitely something to be mentioned in the README.MD file!
Maybe we can go back to "default" behaviour of WonderCMS though, aka needing to click the area you want to edit, and THEN load the editor..?
That does have some advantages, if it means folks can only wreck one part of a page on CTRL-S rather than multiple parts. I do like the CTRL-S feature. You may have seen from another topic, that one of my concerns with the existing editor arrangement is the loss of edits if you get "called away from the desk" and find complex edits have been forgotten when you return an hour later as you've been logged out with unsaved edits. CTRL-S will induce a "save regularly" habit.
As I said earlier, I'm very new to Monaco, and I'm still reading the documentation to get my head around some of its features revealed on hitting F1. However, for WonderCMS purposes it appears to lack the one feature I would really wish to see added to the default editor - some keystrokes/dialogues that allow you to wrap selected text with a variety of common tags.
Currently, there are two reasons I will still encourage my client to use an external editor:
1. While Summernote provides the "wrapping tags" feature it also wrecks they layout of the source code making it near impossible to read and debug formatting errors that can be very difficult to cure using Summernote alone.
2. Monaco has two other awkwardnesses that the default editor doesn't have:
- Lack of word wrap
- Need to manually scroll the page to keep caret within the WonderCMS window.
Give me an internal text editor (rather than Summernote WYSIWYG editing) that has word wrap, tag wrapping and scrolling and I'd be an extremely happy man as my client would be able to sort all his own editing issues.