Input Field – tinymce

Input Field – tinymce

You can use the tinymce input field to allow users to add content using the HTML editor. You can use only 1 tinymce field in each shortcode. See the below example about how you can use the tinymce input field.
ExampleCopy to Clipboardarray(

'type' => 'tinymce',

'heading' => esc_attr__( 'Content editor', 'fusion-builder' ),

'description' => esc_attr__( 'Add a short description for the field.', 'fusion-builder' ),

'param_name' => 'element_content',

'value' => esc_attr__( 'Your Content Goes Here', 'fusion-builder' ),

'placeholder' => true,

)​x 1array(2​3  'type'        => 'tinymce',4​5  'heading'     => esc_attr__( 'Content editor', 'fusion-builder' ),6​7  'description' => esc_attr__( 'Add a short description for the field.', 'fusion-builder' ),8​9  'param_name'  => 'element_content',10​11  'value'       => esc_attr__( 'Your Content Goes Here', 'fusion-builder' ),12​13  'placeholder' => true,14​15)Parameters type
( string ) input type. heading
( string ) Setting title. description
( string ) Short description about the setting field. param_name
 ( string ) In order to use the tinymce editor in your add-on setting, you must set the param_name to 「element_content」. value
( string ) Default value to be set as default content. placeholder
( boolean ) If you want to set the default content as placeholder text, set to TRUE else FALSE.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注