|
|
@ -65,8 +65,8 @@ rte.add('bold', { |
|
|
}); |
|
|
}); |
|
|
rte.add('link', { |
|
|
rte.add('link', { |
|
|
icon: document.getElementById('t'), |
|
|
icon: document.getElementById('t'), |
|
|
attributes: {title: 'Link',} |
|
|
attributes: { title: 'Link' }, |
|
|
// Example on it's easy to wrap a selected content |
|
|
// Example on how to wrap selected content |
|
|
result: rte => rte.insertHTML(`<a href="#">${rte.selection()}</a>`) |
|
|
result: rte => rte.insertHTML(`<a href="#">${rte.selection()}</a>`) |
|
|
}); |
|
|
}); |
|
|
// An example with fontSize |
|
|
// An example with fontSize |
|
|
|