-
Notifications
You must be signed in to change notification settings - Fork 0
Type – WP Editor
Henner R Setyono edited this page Feb 29, 2020
·
5 revisions
'copyright_text' => [
'label' => __( 'Copyright text' ),
'type' => 'wp-editor',
'disableRevertButton' => true,
'quicktags' => false,
'mediaButtons' => false,
'tinymce' => [
'toolbar1' => 'bold,italic,link,undo,redo',
'toolbar2' => '',
],
],ARGUMENTS
-
disableRevertButton- Disabling the "revert to default" button. You can have this arg in any option, but it makes the most sense inwp-editor. -
quickTags- Tab between Visual and Text. If you want to add this, remove this arg. Setting it totruewill still disable it. -
mediaButtons- Add Image button. If you want to enable this, remove this arg. Settil it totruewill still disable it.
AVAILABLE TOOLBAR
-
formatselect(The dropdown where you can choose Heading 1 - 6) -
wp_adv(Toggle the 2nd Toolbar - You must add this in 1st Toolbar if planning to use 2nd Toolbar) bolditaliclink-
bullist(Bullet List) -
numlist(Numbered List) undoredoalignleftaligncenteralignrightstrikethroughhr-
forecolor(Add text color - not recommended since the UI is poor) -
pastetext(Paste as Text - remove formatting when copying from Word) removeformat-
charmap(Show a popup to insert Symbol)
'copyright_text' => __( 'Copyright © [current-year] - [site-title]' )Where to apply the code above?
- The option snippet is for New Section Filter
- The value format is for Default Value Filter
Learn more:
