Fix the old markitup simple editor

dev
richard 2024-05-09 07:53:59 +02:00
parent ea26c0b5b8
commit 286d9a6d9e
27 changed files with 3 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 957 B

View File

@ -0,0 +1 @@
my_html={nameSpace:"my_html",onShiftEnter:{keepDefault:!1,replaceWith:"<br />\n"},onCtrlEnter:{keepDefault:!1,openWith:"\n<p>",closeWith:"</p>\n"},onTab:{keepDefault:!1,openWith:"\t "},markupSet:[{name:"Paragraph",openWith:'<p(!( class="[![Class]!]")!)>',closeWith:"</p>"},{separator:"---------------"},{name:"Bold",key:"B",openWith:"(!(<strong>|!|<b>)!)",closeWith:"(!(</strong>|!|</b>)!)"},{name:"Italic",key:"I",openWith:"(!(<em>|!|<i>)!)",closeWith:"(!(</em>|!|</i>)!)"},{name:"Stroke through",key:"S",openWith:"<del>",closeWith:"</del>"},{separator:"---------------"},{name:"Ul",openWith:"<ul>\n",closeWith:"</ul>\n"},{name:"Ol",openWith:"<ol>\n",closeWith:"</ol>\n"},{name:"Li",openWith:"<li>",closeWith:"</li>"},{separator:"---------------"},{name:"Link",key:"L",openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>',closeWith:"</a>",placeHolder:"Your text to link..."},{separator:"---------------"},{name:"Quote block",openWith:"<blockquote>\n",closeWith:"</blockquote>\n"},{name:"Code block",openWith:"<code>\n",closeWith:"</code>\n"},{separator:"---------------"},{name:"Clean",replaceWith:function(e){return e.selection.replace(/<(.*?)>/g,"")}}]};

View File

@ -0,0 +1 @@
.markItUpButton1 a{background-image:url(images/paragraph.png)}.markItUpButton2 a{background-image:url(images/bold.png)}.markItUpButton3 a{background-image:url(images/italic.png)}.markItUpButton4 a{background-image:url(images/stroke.png)}.markItUpButton5 a{background-image:url(images/list-bullet.png)}.markItUpButton6 a{background-image:url(images/list-numeric.png)}.markItUpButton7 a{background-image:url(images/list-item.png)}.markItUpButton8 a{background-image:url(images/link.png)}.markItUpButton9 a{background-image:url(images/quotes.png)}.markItUpButton10 a{background-image:url(images/code.png)}.markItUpButton11 a{background-image:url(images/clean.png)}

View File

@ -24,7 +24,7 @@
bkLib.onDomLoaded(nicEditors.allTextAreas);
</script>
{else}
<script type="text/javascript" src="{conf.urlSorbet}/admin/scripts/markitup/jquery.markitup.pack.js"></script>
<script type="text/javascript" src="{conf.urlSorbet}/admin/scripts/markitup/jquery.markitup.js"></script>
<script type="text/javascript" src="{conf.urlSorbet}/admin/scripts/markitup/sets/html/set.js"></script>
<link rel="stylesheet" type="text/css" href="{conf.urlSorbet}/admin/scripts/markitup/skins/simple/style.css" />
<link rel="stylesheet" type="text/css" href="{conf.urlSorbet}/admin/scripts/markitup/sets/html/style.css" />