Mosaico displays editing icons depending on the nature of the text. However when text is to be edited the Format drop down does not include the ability to create bullets or numbered lists. Where are the edit icons configured in Mosaico templates?
-
Is anyone able to help. Users want to be able to insert bullets and numbering and it's not available in the verison 2.0 beta2 but on the Mosaico website the format drop downs show the bullet and numbering icons. How can these be made available in the CiviCRM Mosaico extension?– Martin FuggleCommented Jun 17, 2017 at 11:50
4 Answers
To add bulleted and numbered lists to the Mosaico editor, install the Mosaico Toolbar Editor (com.ginkgostreet.mosaicotoolbarconfig) extension.
Then go to Administer > CiviMail > Mosaico Settings, and edit the Mosaico Toolbar Settings field and insert bullist numlist
after hr
.
Hopefully this might be incorporated into CiviCRM Mosaico one day so that it wouldn't be necessary to install another extension but for now this is how to do it.
-
Is this extension compatible with PHP7.1 or above? It seems to only work with PHP5.5+– KboyCommented Mar 29, 2020 at 21:43
-
-
I opened Word, pasted the text I wanted bulleted, then bulleted it, then copied it and pasted it into Mosaico template. The bullets held.
-
3The Mosaico website shows that Mosaico has under the Format>Block menu the addition of Bullet Lists and Number Lists. It also has a Line Height option. We have just upgraded to the latest version of Mosaico in CiviCRM but these features are not included. The answer above is not ideal and neither is it ideal to enter source mode to use <ul> and <li>. Is there some reason that what is displayed on the Mosaico website cannot be included in the CiviCRM Mosaico extension? Commented May 17, 2019 at 4:02
Andrew's answer is great if you can install extensions but you can't code. But if you already have your own extension, you only need these 4 lines of code:
/**
* Hook Mosaico TinyMCE config to add bulleted and numbered lists.
*/
function myextension_civicrm_mosaicoConfig(&$config) {
$config['tinymceConfigFull']['plugins'] = ['link paste lists code civicrmtoken'];
$config['tinymceConfigFull']['toolbar1'] = 'bold italic removeformat | link unlink | bullist numlist | civicrmtoken | pastetext | code';
}
(Replace myextension
with your extension's short name, of course.)
There's a list of plugins and buttons at: https://www.tiny.cloud/docs/advanced/available-toolbar-buttons/