Skip to content

[コードスタディ][テーマ管理] codemirror5→6にアップデート OW-2552 #2170

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

akagane99
Copy link
Contributor

@akagane99 akagane99 commented Apr 11, 2025

概要

  • コード入力のシンタックスハイライト(コードの単語の色変え)等を行うライブラリ codemirror5→6にアップデートしました。
    • codemirror6になった事で resources/sass/app.scss の追記は不要になりました。
    • codemirror6ではtextareaに適用できなくなった(codemirror6はdiv適用)ため、codemirror5互換function editorFromTextArea() を追加して対応しました。

修正後画面

コードスタディ(javascript)

image

コードスタディ(php)

image

コードスタディ(java)

image

テーマ管理>CSS編集

image

テーマ管理>JS編集

image

テーマ管理>テンプレート編集

※ javascript表示
image

npmライブラリ コマンド

npm uninstall codemirror
npm i --save-dev codemirror @codemirror/lang-javascript @codemirror/lang-php @codemirror/lang-css @codemirror/lang-java

# ライブラリの最新化
npm update

# app.js, app.cssの最新化
npm run prod

github actionsで簡易テスト

レビュー完了希望日

なし

関連Pull requests/Issues

参考

DB変更の有無

無し

チェックリスト

@akagane99 akagane99 self-assigned this Apr 11, 2025
@akagane99 akagane99 added the enhancement 機能強化 label Apr 11, 2025
@akagane99 akagane99 marked this pull request as ready for review April 13, 2025 01:09
@akagane99 akagane99 merged commit efc7c76 into master Apr 14, 2025
4 checks passed
@akagane99 akagane99 deleted the CodeMirror6 branch April 14, 2025 01:26
@akagane99 akagane99 changed the title [コードスタディ][テーマ管理] codemirror5→6にアップデート [コードスタディ][テーマ管理] codemirror5→6にアップデート OW-2552 Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 機能強化
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant