Loading saved images with stretched config doesn't work
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
提供されたデータオブジェクトを使ってEditorJSインスタンスを作成し、レンダリングされたブロックを確認して問題を再現します。画像ブロックがstretched設定をどのように処理するかを調べ、ce-block--stretchedクラスを受け取る段落と比較します; stretched: trueの画像が期待されるstretchedスタイルを受け取り、別のブロックに影響しなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Try passing this object in the data field when the constructor is called with const editor = new EditorJS({}))
{
"time": 1600668389224,
"blocks": [
{
"type": "image",
"data": {
"url": "https://cdn.pixabay.com/photo/2017/09/01/21/53/blue-2705642_1280.jpg",
"caption": "Here is a caption field",
"withBorder": false,
"withBackground": true,
"stretched": false
}
},
{
"type": "paragraph",
"data": {
"text": "hellow orld"
}
},
{
"type": "paragraph",
"data": {
"text": "hello world"
}
},
{
"type": "image",
"data": {
"url": "https://cdn.pixabay.com/photo/2017/09/01/21/53/blue-2705642_1280.jpg",
"caption": "adsad",
"withBorder": false,
"withBackground": false,
"stretched": true
}
}
],
"version": "2.18.0"
}
The third block, i.e. paragraph ' hello world ' will get the ce-block--stretched class applied to it and the image below it won't.
But, the settings icon for stretched is toggled. Other settings work fine.
What's the issue?
- 主要言語
- JavaScript
- スター
- 29
- フォーク
- 22
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
editor-js/simple-image-tutorial のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
editor-js/simple-image-tutorial#4 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
editor-js/simple-image-tutorial の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100
-
Issue-Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
sugarlabs/musicblocks#8924 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled オープンcustomer-eng status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100