tinyfilemanager icon indicating copy to clipboard operation
tinyfilemanager copied to clipboard

Impossible to set on default editor.session.setMode("ace/mode/php"); (PHP theme) in advanced editor

Open forcash2019 opened this issue 1 year ago • 1 comments

Hi I can't figure it out how to set on default PHP theme

I can sucessfully set editor.session.setMode("ace/mode/php_laravel_blade"); php_laravel_blade":"PHP (Blade Template) based on this section function renderThemeMode() but when i'm trying to do it for just PHP theme ("php":"PHP") it's just not working!

can you explain me on which line I need to make this modification?

forcash2019 avatar Jun 21 '24 11:06 forcash2019

I had the same issue and resolved it by setting inline to false:

var editor = ace.edit("editor");
editor.getSession().setMode({
    path: "ace/mode/<?php echo $ext; ?>",
    inline: false
});

After that change, .php files were opening with their mode as PHP as expected.

tobypeschel avatar Nov 27 '24 02:11 tobypeschel