-
Notifications
You must be signed in to change notification settings - Fork 3
modify ckeditor image upload function #6
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
Conversation
@@ -23,7 +23,9 @@ | |||
/> | |||
|
|||
<style> | |||
|
|||
figure img{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因為 ckeditor 的圖片不會自動響應式,避免版面直接爆掉所以先隱藏
this.loader = loader; | ||
} | ||
_initRequest() { | ||
const assess_token = [TOKEN]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這邊要填上 Imgur 的 access_token
,取得可以參考 取得
@@ -5,6 +5,7 @@ | |||
<meta charset="utf-8" /> | |||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |||
<meta name="description" content="" /> | |||
<meta name="referrer" content="no-referrer"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imgur 有限制 referer
,會顯示圖片在 localhost 端要加上這段
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="description" content="" /> | ||
<meta name="referrer" content="no-referrer"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imgur 有限制 referer,會顯示圖片在 localhost 端要加上這段
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="description" content="" /> | ||
<meta name="referrer" content="no-referrer"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imgur 有限制 referer,會顯示圖片在 localhost 端要加上這段
* modify ckeditor image upload function * 修改為 imgur api Co-authored-by: Wystan Lin <39123403+WeiJie0@users.noreply.github.com> Co-authored-by: Aiden <110797130+WeiJ0@users.noreply.github.com> Co-authored-by: Wystan Lin <39123403+WeiJie0@users.noreply.github.com>
* modify ckeditor image upload function * 修改為 imgur api Co-authored-by: Wystan Lin <39123403+WeiJie0@users.noreply.github.com> Co-authored-by: Aiden <110797130+WeiJ0@users.noreply.github.com> Co-authored-by: Wystan Lin <39123403+WeiJie0@users.noreply.github.com>
需要再下一次
npm install
有新增套件主要針對 ckeditor 的圖片上傳功能寫了一個自定義參數做發送及 server 存圖片到本端並回傳路徑網址
然後不小心把一些怪圖推上來了XD