K
K
Kirill Gorelov2015-09-11 14:16:19
PHP
Kirill Gorelov, 2015-09-11 14:16:19

Code editor like on wp?

Hello.
Guys. Who can tell how to make a template editor (and not only. In terms of php and html).
That is:
For example, I open the edit.php page and select which file (php or html) I want to edit.
And I click on index.php and change the content of the code.
Such an example is implemented on WordPress (wp) and dle.
How to implement this or are there already ready-made scripts? Or the standard php methods can allow this to be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2015-09-11
@Taraflex

www.tinymce.com
https://codemirror.net/ace.c9.io/#nav=about
_

T
TyzhSysAdmin, 2015-09-11
@POS_troi

- Read the file and output the content to the form with textarea.
- Edit content.
- Submit the form, read the contents of the textarea in the function that receives the POST request from the form, and overwrite the file.
And that two functions, the elementary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question