First Post

Information Technology is badly documented. Within that field, programming is particularly badly documented. Within that discipline, APIs are especially badly documeted, and within that subset lies TinyMCE.

It’s not rare to find bad documentation, but it is rare to find examples which are so…

…redundant:tinymce.Annotator
This is the annotator api.
…confusing:annotationChanged() Executes the specified callback when the current selection matches the annotation or not.
…confounding:get Boolean Optional state gets added for the setContent event then it’s set to true.
…absent:get()
…unfathomable:noCaretAfter Boolean Returns true/false if the browser can or can’t place the caret after a inline block like an image.
…fantastical:extra() Adds an extra “hidden” undo level by first applying the first mutation and store that to the undo stack then roll back that change and do the second mutation on top of the stack. This will produce an extra undo level that the user doesn’t see until they undo.
…evasive:DOMUtils() Constructs a new DOMUtils instance. Consult the Wiki for more details on settings etc for this class.
…opinionated:destroy() Destroys all internal references to the DOM to solve IE leak issues.
…nonsensical:split() Splits an element into two new elements and places the specified split element or elements between the new ones.
…misnomered:attr() Sets/gets properties on the elements in the current set.
…inconclusive:destroy() Destroys the editor instance by removing all events, element references or other resources that could leak memory. This method will be called automatically when the page is unloaded but you can also call it directly if you know what you are doing.
…casual:after() Adds the specified elements after current set nodes.
append() Appends the specified node/html or node set to the current set nodes.
…enthusiastic:clamp() Returns a rect clamped within the specified clamp rect. This forces the rect to be inside the clamp rect.
…prattling:relativePosition() Returns the rect positioned based on the relative position name to the target rect.
…misinformed:getElementRule() Returns true/false if the specified element is valid or not according to the schema.

Parameters
name (String) – Element name to check for.
Return value (Object) – Element object or undefined if the element isn’t valid.
…doubtful:getInvalidStyles() Name/value map object with valid styles for each element.
…literal:blur() Blurs the current control.
…contrary:getParentCtrl() Returns a control instance for the current DOM element.
…desultory:on() Binds a callback to the specified event. This event can both be native browser events like “click” or custom ones like PostRender. The callback function will be passed a DOM event like object that enables yout do stop propagation.
…counterfactual: icon String Icon to use for button.
image String Image to use for icon.
…insistent:hideAll() Hide all visible float panels with he autohide setting enabled. This is for manually hiding floating menus or panels.
hideAll() Hide all visible float panels with he autohide setting enabled. This is for manually hiding floating menus or panels.
…prosaic:tinymce.ui.GridLayout
This layout manager places controls in a grid.
…distracted:tinymce.ui.InfoBox
….
…paradoxical:hideAll() Hide all visible float panels with he autohide setting enabled. This is for manually hiding floating menus or panels.
…mundane:tinymce.ui.Progress
Progress control.
…incoherent:show() Sets the visible state to true.
visible() Sets/gets the visible for the control.
…unhelpful:destroy():void Destroy.
…trite:getContentAreaContainer():Element Returns the editors content area container element.
…convoluted:isNotDirty : Boolean : State to force the editor to return false on a isDirty call.
…strong?remove(name:String, path:Strong, domain:Strong):void [static] Removes/deletes a cookie by name.
…inconsequential:showMenu():void Shows the menu.
…irreconcilable:onStoreDraft(sender:AutoSave, draft:Object) This event gets fired when a draft is stored to local storage.
onStoreDraft(sender:AutoSave, draft:Object) This event gets fired when a draft is restored from local storage.
…unreliable:So for example:
a
b
c
will become
a
b
c
…shambolic:public function getLength():void
Executes the specified callback function for the menu item. In this case when the user clicks the menu item.

Still, it can’t be descibed as ‘deadly’…