voidlabs / mosaico

Mosaico - Responsive Email Template Editor
https://mosaico.io
GNU General Public License v3.0
1.7k stars 501 forks source link

<p data-ko-editable="text"></p> insert/edit link #489

Closed ivinkaf closed 5 years ago

ivinkaf commented 5 years ago

Hi,

if I apply data-ko-editable="text" in p tag - I get editor with two options (bold and italic), is there a way how to add third options: insert/edit link? (I don't want to use data-ko-editable in td or div tag)

thanks

I.

bago commented 5 years ago

have a look at #473

You have ko.bindingHandlers.wysiwyg.fullOptions and ko.bindingHandlers.wysiwyg.standardOptions variables that you can override with your preferred tinymce options/toolbar.

var customFontsPlugin = function(vm) {
ko.bindingHandlers.wysiwyg.standardOptions.toolbar = whatyouwant;
};

See tinymce documentation in order to understand how to configure your tinymce.

ivinkaf commented 5 years ago

Great, thanks :)