lino.modlib.tinymce

See ;doc:/specs/tinymce.

(This module's source code is available here.)

Functions

javascript(url)

Classes

Plugin(site, app_label, app_name, ...)

See Introduction to plugins.

lino.modlib.tinymce.TINYMCE_VERSION = '3.5.11'

Which version of TinyMCE to use.

With 4.1.10, windows containing a TextField don't open, and the JS console says "TypeError: sp is undefined". That's because we did not yet get Andrew Mayorov's lino/modlib/tinymce/static/byteforce/Ext.ux.TinyMCE.js to work with TinyMCE 4. It seems that either ControlManager or WindowManager no longer are functions in tinymce4.

class lino.modlib.tinymce.Plugin(site, app_label, app_name, app_module, needed_by)

Bases: lino.core.plugin.Plugin

See Introduction to plugins.

document_domain = None

The domain name of this production site.

window_width = 500

The initial width of the window to use when editing in own window.

window_height = 400

The initial height of the window to use when editing in own window.

field_buttons = 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,template'

The toolbar buttons when editing a field inside a detail form.

window_buttons1 = 'save,cancel,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect,|,search,replace'

The first row of toolbar buttons when editing in own window.

window_buttons2 = 'cut,copy,paste,template,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor'

The second row of toolbar buttons when editing in own window.

window_buttons3 = 'insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions,|,tablecontrols'

The third row of toolbar buttons when editing in own window.

media_name = 'tinymce-3.5.11'

Lino currently includes three versions of TinyMCE, but for production sites we still use the eldest version 3.4.8.