Skip to content

Commit

Permalink
demo: 对demo页面增加meta,声明移动端不缩放页面
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Oct 29, 2024
1 parent daf4f68 commit 7842ec8
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/ai_chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>流式输出md内容</title>
<link rel="stylesheet" type="text/css" href="../dist/cherry-markdown.css">
<style>
Expand Down
1 change: 1 addition & 0 deletions examples/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Markdown API</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<link rel="stylesheet" type="text/css" href="../dist/cherry-markdown.css">
<link rel="Shortcut Icon" href="../logo/favicon.ico">
Expand Down
1 change: 1 addition & 0 deletions examples/chatgpt.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/drawio_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>draw.io demo</title>
<link rel="stylesheet" href="./drawio_demo/grapheditor.css">
<!-- <link rel="stylesheet" href="https://jgraph.github.io/drawio/src/main/webapp/mxgraph/css/common.css"> -->
Expand Down
1 change: 1 addition & 0 deletions examples/h5.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/head_num.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/img.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>图片所见即所得编辑</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Markdown 非全屏效果</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/notoolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/preview_only.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<style>
html,
Expand Down
4 changes: 0 additions & 4 deletions examples/scripts/h5-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,11 @@ var cherryConfig = {
'italic',
'strikethrough',
'|',
'color',
'header',
'|',
'list',
{
insert: ['image', 'audio', 'video', 'link', 'hr', 'br', 'code', 'formula', 'toc', 'table', 'pdf', 'word'],
},
'graph',
'settings',
],
},
editor: {
Expand Down
1 change: 1 addition & 0 deletions examples/suggester.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表格所见即所得编辑</title>
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions examples/vim.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VIM demo - Cherry Editor</title>
<link rel="stylesheet" type="text/css" href="../dist/cherry-markdown.css">
<link rel="Shortcut Icon" href="../logo/favicon.ico">
Expand Down
1 change: 1 addition & 0 deletions examples/xss.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cherry Editor - Markdown Editor</title>
<style>
html,
Expand Down

0 comments on commit 7842ec8

Please sign in to comment.