For an editor like tinyMCE, it is definitely inappropriate for me to directly put its source code into the project for version control. Is there any automation solution?
为情所困2017-06-21 10:13:17
Thanks for the invitation.
First of all, version control is files and has little to do with the editor.
Commonly used version control tools are svn and git, and multi-version files are usually stored in svn servers or git servers. The above are divided into private and public servers. But the principle is the same:
Editor edits files and saves them locally.
Submit the file to the server. If overwritten, versions file1, file2, and file3 will be generated
For example, if you use github to store:
New project on github
Clone empty project to local, such as: C: ProjectA
tinyMCE creates a new project and saves the project directory to C:ProjectA
The github client can detect file changes, enter the version title, and the version description can be submitted to github after confirmation
tinyMCE edits any file changes, the github client can detect the changes, and can submit them after confirmation
You can view any version of a file on github.
扔个三星炸死你2017-06-21 10:13:17
tinyMCE can be managed through npm and bower, see the instructions for TinyMCE, so you can just put package.json
or bower.json
into version control. When using it, first use npm install
or bower install
to package the dependencies, and then call the files in node_modules
or bower_components
.