Is it possible to let vendors add links to the description?
screenshot:
link this: Link plugin | Docs | TinyMCE
Hi,
Please provide more information about where you add this description (for example, when adding a description in the listing, it is possible to add a hyperlink without additional code).
@andrii I want to have the add link button in the menu off the editor.
Adding a hyperlink doesn’t work, see this link
Hi,
Please try this PHP snippet:
add_filter(
'hivepress/v1/fields/textarea',
function ($field_args, $field){
$html = hivepress()->helper->get_array_value($field_args, 'html');
$field_args['editor'] = [
'toolbar1' => implode(
',',
[
'bold',
'italic',
'underline',
'strikethrough',
'blockquote',
'separator',
'bullist',
'numlist',
'indent',
'outdent',
'justifyleft',
'justifycenter',
'justifyright',
'cut',
'copy',
'paste',
'forecolor',
'insert',
'undo',
'redo',
]
),
'toolbar2' => '',
'toolbar3' => '',
'toolbar4' => '',
'elementpath' => false,
];
return $field_args;
},
1000,
2
);
Please note that it can require further customization.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.