Source Code window resize

Questions about how to use the online - editors and suggestions how to improve them
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Source Code window resize

Post by Tata » 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.
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.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Source Code window resize

Post by cmb » Wed May 27, 2020 9:11 pm

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.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Source Code window resize

Post by Tata » 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.
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.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Source Code window resize

Post by cmb » Thu May 28, 2020 10:04 pm

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.
Christoph M. Becker – Plugins for CMSimple_XH

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Source Code window resize

Post by Holger » Thu May 28, 2020 10:06 pm

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.

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Source Code window resize

Post by Tata » Thu May 28, 2020 10:14 pm

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.

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Source Code window resize

Post by Tata » Thu May 28, 2020 10:25 pm

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.
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.

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Source Code window resize

Post by Tata » Fri Sep 24, 2021 8:16 pm

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");
}
...
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.

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Source Code window resize

Post by lck » Sun Sep 26, 2021 11:38 am

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.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Source Code window resize

Post by Tata » Sun Sep 26, 2021 11:52 am

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.

Post Reply