Skip to content

Commit

Permalink
lots of changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed May 24, 2021
1 parent 612ae4f commit fbff473
Show file tree
Hide file tree
Showing 22 changed files with 179,184 additions and 48,146 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"search.useIgnoreFiles": false
}
16 changes: 16 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Tiptap::make('FieldName')
'link',
'strike',
'underline',
'highlight',
'superscript',
'subscript',
'bullet_list',
Expand All @@ -58,6 +59,21 @@ When just passing the string `'heading'` you will have H1, H2 and H3 to choose f

`'code'` is inline code (like `<code></code>`) while `'code_block'` will give you `<pre><code></code></pre>`.

## Syntax Highlighting when using `code_block`

``` php
Tiptap::make('FieldName')
->buttons([
'italic',
'bold',
'code',
'code_block'
])
->syntaxHighlighting(),
```

When using `'code_block'` you can turn on syntax highlighting by using `syntaxHighlighting()`.

### Edit HTML

the `'edit_html'` option will enable the ability to toggle to the tiptap editor to a textarea and manually edit the HTML
Expand Down
80 changes: 80 additions & 0 deletions dist/css/dracula.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/* Dracula Theme v1.2.5
*
* https://github.com/dracula/highlightjs
*
* Copyright 2016-present, All rights reserved
*
* Code licensed under the MIT license
*
* @author Denis Ciccale <[email protected]>
* @author Zeno Rocha <[email protected]>
*/

.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #282a36;
}

.hljs-built_in,
.hljs-selector-tag,
.hljs-section,
.hljs-link {
color: #8be9fd;
}

.hljs-keyword {
color: #ff79c6;
}

.hljs,
.hljs-subst {
color: #f8f8f2;
}

.hljs-title {
color: #50fa7b;
}

.hljs-string,
.hljs-meta,
.hljs-name,
.hljs-type,
.hljs-attr,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
color: #f1fa8c;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion {
color: #6272a4;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-title,
.hljs-section,
.hljs-doctag,
.hljs-type,
.hljs-name,
.hljs-strong {
font-weight: bold;
}

.hljs-literal,
.hljs-number {
color: #bd93f9;
}

.hljs-emphasis {
font-style: italic;
}

77 changes: 77 additions & 0 deletions dist/css/field.css
Original file line number Diff line number Diff line change
@@ -1 +1,78 @@
/* Dracula Theme v1.2.5
*
* https://github.com/dracula/highlightjs
*
* Copyright 2016-present, All rights reserved
*
* Code licensed under the MIT license
*
* @author Denis Ciccale <[email protected]>
* @author Zeno Rocha <[email protected]>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #282a36;
}

.hljs-built_in,
.hljs-selector-tag,
.hljs-section,
.hljs-link {
color: #8be9fd;
}

.hljs-keyword {
color: #ff79c6;
}

.hljs,
.hljs-subst {
color: #f8f8f2;
}

.hljs-title {
color: #50fa7b;
}

.hljs-string,
.hljs-meta,
.hljs-name,
.hljs-type,
.hljs-attr,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
color: #f1fa8c;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion {
color: #6272a4;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-title,
.hljs-section,
.hljs-doctag,
.hljs-type,
.hljs-name,
.hljs-strong {
font-weight: bold;
}

.hljs-literal,
.hljs-number {
color: #bd93f9;
}

.hljs-emphasis {
font-style: italic;
}
Loading

0 comments on commit fbff473

Please sign in to comment.