Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor only #49

Open
ceeddd opened this issue Oct 31, 2021 · 2 comments
Open

Editor only #49

ceeddd opened this issue Oct 31, 2021 · 2 comments

Comments

@ceeddd
Copy link

ceeddd commented Oct 31, 2021

Hi,
I'd like to use pheditor as an editor for one file only without the "file manager" part.
Or : the file manager is here, but a file is open by default, chosen via a "define" parameter.
I think it's not possible as it is.
Do you imagine it could be a futur option ?
Thanks
cedric

@hamidsamak
Copy link
Collaborator

Hi @ceeddd
All actions in pheditor are based on file manager part. I don't think that disabling this part could be possible at least in current version.

If you have knowledge of PHP language you can remove or comment loading file manager requests and load files with URL like this:
pheditor.php#/file-name.php

@liberatorcnx
Copy link

The URL pheditor.php#/file-name.php does not work. It does not load the file directly from a link.

You can limit the file manager to only show 1 file by setting 'define('PATTERN_FILES' to only 1 file. I wanted to only show 1 php file so my 'define('PATTERN_FILES' is set to 'define('PATTERN_FILES', '/^filename.php$/i');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants