PHPackages                             tomk79/common-file-editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tomk79/common-file-editor

ActiveLibrary

tomk79/common-file-editor
=========================

汎用的なファイル編集インターフェイスを提供するJavaScriptライブラリ

0.2.0(2mo ago)05MITJavaScriptCI failing

Since Aug 21Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/tomk79/common-file-editor)[ Packagist](https://packagist.org/packages/tomk79/common-file-editor)[ RSS](/packages/tomk79-common-file-editor/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (7)Used By (0)

tomk79/common-file-editor
=========================

[](#tomk79common-file-editor)

汎用的なファイル編集インターフェイスを提供するJavaScriptライブラリ

Usage
-----

[](#usage)

```

var commonFileEditor = new CommonFileEditor(
    document.getElementById('cont-common-file-editor'),
    {
        lang: "ja",
        read: function(filename, callback){
            // サーバーでファイルを読み込むAPIを用意してください。
            // callback には、base64エンコードされた文字列を含むオブジェクトを返してください。
            callback({
                "base64": base64string
            });
            return;
        },
        write: function(filename, base64, callback){
            // サーバーでファイルを保存するAPIを用意してください。
            // callback には、結果(true or false)を返してください。
            callback(true);
            return;
        },
        onemptytab: function(){
            alert('すべてのタブが閉じられました。');
        }
    }
);

// Initialize
commonFileEditor.init(function(){
    console.log('ready.');

    // Open Files
    commonFileEditor.preview('/file_a.txt');
    commonFileEditor.preview('/file_b.html');
    commonFileEditor.preview('/file_c.svg');
    commonFileEditor.preview('/file_d.jpg');
    commonFileEditor.preview('/file_e.gif');
    commonFileEditor.preview('/file_f.png');
});

```

更新履歴 - Change log
-----------------

[](#更新履歴---change-log)

### tomk79/common-file-editor v0.2.0 (2026年2月21日)

[](#tomk79common-file-editor-v020-2026年2月21日)

- SVGをプレビューするようになった。
- `.mm` 形式のプレビューと編集に対応した。

### tomk79/common-file-editor v0.1.2 (2023年11月13日)

[](#tomk79common-file-editor-v012-2023年11月13日)

- ダークモード用のスタイルをバンドルした。
- ファイルを閉じたときに、タブが正しく閉じられない不具合を修正した。

### tomk79/common-file-editor v0.1.1 (2023年4月22日)

[](#tomk79common-file-editor-v011-2023年4月22日)

- オプション `onemptytab` 追加。
- プレビュー可能な拡張子を追加。
- `options.lang` を追加した。
- スタイリングの改善。

### tomk79/common-file-editor v0.1.0 (2019年8月21日)

[](#tomk79common-file-editor-v010-2019年8月21日)

- 初回リリース

License
-------

[](#license)

MIT License

Author
------

[](#author)

- Tomoya Koyanagi
- website:
- Twitter: @tomk79

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance84

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~792 days

Total

4

Last Release

82d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00ca3b0b7c69b5a8c25bbfb82b305ab94c4fc7458b38df445cbb97acc073875f?d=identicon)[tomk79](/maintainers/tomk79)

---

Top Contributors

[![tomk79](https://avatars.githubusercontent.com/u/584845?v=4)](https://github.com/tomk79 "tomk79 (31 commits)")

### Embed Badge

![Health badge](/badges/tomk79-common-file-editor/health.svg)

```
[![Health](https://phpackages.com/badges/tomk79-common-file-editor/health.svg)](https://phpackages.com/packages/tomk79-common-file-editor)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
