Site:API:Wysiwyg

From Metrixstream
Jump to: navigation, search

Contents

Wysiwyg

HTML code to inject a Wysiwyg Editor

This API call is responsible for generating the appropriate HTML, CSS, and JS to render a Wysiwyg Editor.

Authentication Restrictions

Any authenticated user.

Required Parameters

action=wysiwyg
field
the name of the HTML input field that this editor will receive its value upon a form submit.
width
the width of the editor in pixels.
height
the height of the editor in pixels.

Optional Parameters

data
the default data to edit in the editor
default_image_size
the initial cropping size for any images uploaded through the editor; the default size is 600; cropping is lossless, meaning all recrops are from the original file.
buttons1
the list of buttons for the 1st row of the editor
the default list is: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,fontselect,fontsizeselect,|,forecolor,backcolor,link,unlink,image,emotions,code"
buttons2
the list of buttons for the 2nd row of the editor
buttons3
the list of buttons for the 3rd row of the editor

Successful Response

status=ok
item
html
Personal tools