Site:API:Wysiwyg

From Metrixstream
(Difference between revisions)
Jump to: navigation, search
(Created page with "= 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. === Authentica...")
 
(Successful Response)
 
Line 35: Line 35:
 
=== Successful Response ===
 
=== Successful Response ===
  
;status=ok
+
; status=ok
;item
+
; item
:;html
+
::; html

Latest revision as of 10:49, 1 May 2012

Contents

[edit] Wysiwyg

[edit] 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.

[edit] Authentication Restrictions

Any authenticated user.

[edit] 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.

[edit] 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

[edit] Successful Response

status=ok
item
html
Personal tools