Page 1 of 2

Source Code window resize

Posted: Wed May 27, 2020 7:37 pm
by Tata
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.

Re: Source Code window resize

Posted: Wed May 27, 2020 9:11 pm
by cmb
Tata wrote:
Wed May 27, 2020 7:37 pm
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 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.

Re: Source Code window resize

Posted: Thu May 28, 2020 9:33 pm
by Tata
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.

Re: Source Code window resize

Posted: Thu May 28, 2020 10:04 pm
by cmb
Tata wrote:
Thu May 28, 2020 9:33 pm
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.
For Codeeditor_XH, pressing <ESC> (when the editor is focused) is supposed to toggle between fullscreen and normal size; might not work everywhere, though.

Re: Source Code window resize

Posted: Thu May 28, 2020 10:06 pm
by Holger
Tata wrote:
Wed May 27, 2020 7:37 pm
Absolutely excellent would be the same feature for stylesheet and template editting.
hi_admin has built in support to edit the template and stylesheet width Codeditor_XH.

Re: Source Code window resize

Posted: Thu May 28, 2020 10:14 pm
by Tata
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.

Re: Source Code window resize

Posted: Thu May 28, 2020 10:25 pm
by Tata
cmb wrote:
Thu May 28, 2020 10:04 pm
For Codeeditor_XH, pressing <ESC> (when the editor is focused) is supposed to toggle between fullscreen and normal size; might not work everywhere, though.
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.

Re: Source Code window resize

Posted: Fri Sep 24, 2021 8:16 pm
by Tata
cmb wrote:
Thu May 28, 2020 10:04 pm
For Codeeditor_XH, pressing <ESC> (when the editor is focused) is supposed to toggle between fullscreen and normal size; might not work everywhere, though.
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,
			...
Playing with the width and height makes no change in the editor appearance.
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");
}
...

Re: Source Code window resize

Posted: Sun Sep 26, 2021 11:38 am
by lck
Tata wrote:
Fri Sep 24, 2021 8:16 pm
The <ESC> doesn't work in any editor. Tested with the latest FF,Edge, Safari, Opera, Chrome. (Working on iMAC).
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.

Re: Source Code window resize

Posted: Sun Sep 26, 2021 11:52 am
by Tata
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?