Skip to content

Commit

Permalink
Remove custom-set actions in demo.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredreich committed Mar 10, 2018
1 parent b2b8465 commit c64b861
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,6 @@ <h3>HTML output:</h3>
var editor = window.pell.init({
element: document.getElementById('pell'),
styleWithCSS: false,
actions: [
'bold',
'underline',
'italic',
{
name: 'zitalic',
icon: 'Z',
title: 'Zitalic',
result: () => window.pell.exec('italic')
},
{
name: 'image',
result: () => {
const url = window.prompt('Enter the image URL')
if (url) window.pell.exec('insertImage', ensureHTTP(url))
}
},
{
name: 'link',
result: () => {
const url = window.prompt('Enter the link URL')
if (url) window.pell.exec('createLink', ensureHTTP(url))
}
}
],
onChange: function (html) {
document.getElementById('text-output').innerHTML = html
document.getElementById('html-output').textContent = html
Expand Down

0 comments on commit c64b861

Please sign in to comment.