Source Code window resize
Source Code window resize
Is there a way to make the SourceCode window in TInyMCE4 resizible?
I just downloaded the v1.3.3 and the "codemirror" ist just EXCELLENT!!!. But on some pages, the width of e.g. 600px is too small.
Absolutely excellent would be the same feature for stylesheet and template editting.
I just downloaded the v1.3.3 and the "codemirror" ist just EXCELLENT!!!. But on some pages, the width of e.g. 600px is too small.
Absolutely excellent would be the same feature for stylesheet and template editting.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Source Code window resize
I don't know if Codeeditor_XH works with recent browser versions, but you can give it a try. It replaces the stylesheet and template editor textboxes with CodeMirror instances.Tata wrote: ↑Wed May 27, 2020 7:37 pmIs there a way to make the SourceCode window in TInyMCE4 resizible?
I just downloaded the v1.3.3 and the "codemirror" ist just EXCELLENT!!!. But on some pages, the width of e.g. 600px is too small.
Absolutely excellent would be the same feature for stylesheet and template editting.
Christoph M. Becker – Plugins for CMSimple_XH
Re: Source Code window resize
THX. It works just wundeful. However the onlz way I have found is the admin template with wider content area. The full screen mode of tinyeditor4 has no impact if switching to "Code". The Code window opens always with its own width.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Source Code window resize
For Codeeditor_XH, pressing <ESC> (when the editor is focused) is supposed to toggle between fullscreen and normal size; might not work everywhere, though.
Christoph M. Becker – Plugins for CMSimple_XH
Re: Source Code window resize
Ja, das habe ich auch gefunden. Es geht mir aber um die Fenstergröße. Wenn ich local arbeite nutze ich UltraEdit, oder SublimeText, oder Coda usw. Separat von der Webseite und am vollen Bildschirm. Auf der Webseite selbst, ist aber der Editor von der VOrlage abhängig, oder man brauch eine Adminvorlage, wo das Contentarea breiter gestylet ist. Der Editor hat zwar die "FullScreen" FUnktion, die ist aber fon dem Codeeditor unabhängig.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Source Code window resize
Oj, etwas geht wieder schief. Wenn ich jetzt den Editor umschalte (mit EditorTab), öffnet sich die gesammte Webseite oben dem Editor. Ich lasse es für Weilchen liegen. Es kommt hoffentlich selbst in die Reihe.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Source Code window resize
The <ESC> doesn't work in any editor. Tested with the latest FF,Edge, Safari, Opera, Chrome. (Working on iMAC).
In tinymce4/plugins/codemirror/plugin.js (and plugin.min.js) there is
Code: Select all
// Open editor window
var win = editor.windowManager.open({
title: 'HTML source code',
...
width: 800,
height: 550,
resizable : true,
maximizable : true,
...
The same in plugins/codeeditor/classes/plugin.php in
Code: Select all
...
codeeditor.filebrowser = function(type) {
window.open("$url" + type, "codeeditor_filebrowser",
"toolbar=no,location=no,status=no,menubar=no," +
"scrollbars=yes,resizable=yes,width=640,height=480");
}
...
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Source Code window resize
Bei mir funktioniert das, getestet in Edge, Chrome, Opera und Firefox. Hast du auch die neueste Version installiert?
Bedenke, wir reden hier über Codeeditor_XH und nicht über das Codemirror Plugin im TinyMCE. Die Funktion mit ESC ist nur unter Einstellungen > Template und Stylesheet verfügbar.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage
Re: Source Code window resize
Ah, das habe ich nicht bemerkt. Schade, dass es für content nich erlaubt ist. Es wäre sehr nützlich, besonders, wenn man Snippets einträgt. Is es schwer irgendwo umzustellen?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.