Commit a0747fa1 authored by john's avatar john

3011

parent b164b9cf
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"list-ul", "list-ol", "hr", "|", "list-ul", "list-ol", "hr", "|",
"link", "reference-link", "image", "code", "preformatted-text", "code-block", "table", "datetime", "emoji", "html-entities", "pagebreak", "|", "link", "reference-link", "image", "code", "preformatted-text", "code-block", "table", "datetime", "emoji", "html-entities", "pagebreak", "|",
"goto-line", "watch", "preview", "fullscreen", "clear", "search", "|", "goto-line", "watch", "preview", "fullscreen", "clear", "search", "|",
"help", "info" "help", "info", "carousel"
], ],
simple : [ simple : [
"undo", "redo", "|", "undo", "redo", "|",
...@@ -222,7 +222,8 @@ ...@@ -222,7 +222,8 @@
fullscreen : "fa-arrows-alt", fullscreen : "fa-arrows-alt",
clear : "fa-eraser", clear : "fa-eraser",
help : "fa-question-circle", help : "fa-question-circle",
info : "fa-info-circle" info : "fa-info-circle",
carousel : "fa-sliders",
}, },
toolbarIconTexts : {}, toolbarIconTexts : {},
...@@ -268,7 +269,8 @@ ...@@ -268,7 +269,8 @@
clear : "清空", clear : "清空",
search : "搜索", search : "搜索",
help : "使用帮助", help : "使用帮助",
info : "关于" + editormd.title info : "关于" + editormd.title,
carousel : "carousel"
}, },
buttons : { buttons : {
enter : "确定", enter : "确定",
...@@ -2911,6 +2913,22 @@ ...@@ -2911,6 +2913,22 @@
cm.setSelections(selections); cm.setSelections(selections);
}, },
carousel : function() {
var cm = this.cm;
var cursor = cm.getCursor();
var selection = cm.getSelection();
if (cursor.ch !== 0)
{
cm.setCursor(cursor.line, 0);
cm.replaceSelection("__CAROUSEL__ " + selection);
cm.setCursor(cursor.line, cursor.ch + 2);
}
else
{
cm.replaceSelection("__CAROUSEL__ " + selection);
}
},
h1 : function() { h1 : function() {
var cm = this.cm; var cm = this.cm;
var cursor = cm.getCursor(); var cursor = cm.getCursor();
......
...@@ -5,17 +5,17 @@ RewriteCond %{HTTP_HOST} ^www.task-on\.com$ [NC] ...@@ -5,17 +5,17 @@ RewriteCond %{HTTP_HOST} ^www.task-on\.com$ [NC]
RewriteRule ^(.*)$ http://task-on.com/$1 [R=301,L] RewriteRule ^(.*)$ http://task-on.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://task-on.com/ [R=301,L] RewriteRule ^index\.php$ http://task-on.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{HTTPS} off RewriteCond %{HTTP} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$ RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ https://task-on.com/$1 [R=301,L] RewriteRule ^(.+)/$ http://task-on.com/$1 [R=301,L]
Redirect 301 /portfolio/appl /portfolio Redirect 301 /portfolio/appl /portfolio
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment