Skip to content

System settings ​

All settings are under System Settings, namespace tiptapeditor. They can be overridden in context, user group or user settings. Upgrades never reset their values.

TIP

This page is generated from the package sources (npm run docs:generate).

Interface ​

KeyDescriptionDefault
tiptapeditor.toolbarToolbar Toolbar buttons separated by spaces, groups separated by "|". Example: undo redo | heading | bold italic | link image.undo redo | heading | bold italic underline strike code | color highlight | superscript subscript | align | bulletList orderedList | blockquote horizontalRule | link modxLink anchor | image gallery file table embed | codeBlock | clearFormatting | source fullscreen
tiptapeditor.profilesProfiles JSON object of named editor profiles, e.g. {"simple": {"toolbar": "bold italic link"}}. A profile overrides the toolbar and features.(empty)
tiptapeditor.default_profileDefault profile Profile used when no other profile applies.default
tiptapeditor.content_profileContent profile Profile for the resource content field. Empty means the default profile.(empty)
tiptapeditor.tv_profilesTV profiles TV name → profile: a JSON object such as {"introtext": "simple"}, or name=profile pairs, one per line or comma separated.(empty)
tiptapeditor.heading_levelsHeading levels Comma separated heading levels available in the editor.1,2,3,4,5,6
tiptapeditor.bubble_menuBubble menu Show a formatting menu above selected text.Yes
tiptapeditor.floating_menuFloating menu Show an insert menu on an empty paragraph.Yes
tiptapeditor.slash_commandsSlash commands Typing "/" on an empty line opens the block menu.Yes
tiptapeditor.statusbarStatus bar Show word and character count and the current element path.No
tiptapeditor.sticky_toolbarSticky toolbar Keep the toolbar visible while scrolling long content.Yes
tiptapeditor.enable_fullscreenFullscreen Allow the fullscreen mode button (Esc exits).Yes
tiptapeditor.min_heightMinimum height Minimum editor height in pixels.200
tiptapeditor.max_heightMaximum height Maximum editor height in pixels when autogrow is on. 0 means unlimited.700
tiptapeditor.default_heightDefault height Editor height in pixels when autogrow is off.300
tiptapeditor.autogrowAutogrow Grow the editor with its content up to the maximum height.Yes
tiptapeditor.content_cssContent CSS Comma separated list of site stylesheets applied to the content inside the editor, e.g. /assets/css/content.css,/assets/css/article.css.(empty)

Content ​

KeyDescriptionDefault
tiptapeditor.enable_tablesTables Tables in the editor: table button, table toolbar. When off, content with tables stays in the plain text field.Yes
tiptapeditor.enable_imagesImages Enable images.Yes
tiptapeditor.enable_iframeIframes and embeds Enable iframe and video embeds.Yes
tiptapeditor.iframe_allowed_attributesAllowed iframe attributes Comma separated whitelist of iframe attributes. Event handler attributes (on*) are always removed.src,width,height,allow,allowfullscreen,loading,title,name,referrerpolicy,frameborder,class,id,style
tiptapeditor.iframe_allowed_hostsAllowed iframe hosts Comma separated list of hosts allowed in iframe src. Empty allows any host.(empty)
tiptapeditor.paste_as_textPaste as text Paste clipboard content as plain text.No
tiptapeditor.image_classesImage class presets Classes offered for images: a JSON object {"css-class": "Label"} or a comma separated list of classes.(empty)
tiptapeditor.enable_galleryGalleries Enable the gallery button: several images with a template (grid, slider, …).Yes
tiptapeditor.gallery_templateGallery template Template of new galleries: grid, slider (Swiper markup), images, or a name from tiptapeditor.gallery_templates.grid
tiptapeditor.gallery_templatesOwn gallery templates JSON with more templates, e.g. {"cards": {"label": "Cards", "wrapper": "<ul class="cards">{items}</ul>", "item": "<li>{image}{caption}</li>"}}. {items} = the pictures, {image} = the image (with its link when "open larger" is on), {caption} = <figcaption> with the caption. Scripts and on* attributes are removed.(empty)
tiptapeditor.lightboxOpen images larger on click New images and galleries get a link to the image around the picture (<figure><a href="…"><img></a></figure>) for a lightbox script on the site. Can be switched per image and gallery in the dialog.No
tiptapeditor.lightbox_attributeLightbox attribute Attribute your lightbox script looks for, e.g. data-fancybox (Fancybox), data-lightbox, data-gallery. A single image gets it without a value, a gallery with its group name (data-fancybox="gallery-3fa9c1"). Empty: a plain link.(empty)
tiptapeditor.lightbox_labelLightbox link label aria-label of the link, {alt} = the alt text or caption. Empty: "Open image: {alt}" in the manager language.(empty)
tiptapeditor.link_classesLink class presets CSS classes offered in the link dialog: a JSON object {"css-class": "Label"} or a comma separated list of classes. Empty: free text field.(empty)
tiptapeditor.paragraph_classesParagraph class presets Classes offered for paragraphs: a JSON object {"css-class": "Label"} or a comma separated list of classes.(empty)
tiptapeditor.table_classesTable class presets CSS classes offered in the table dialog: JSON object {"css-class": "Label"} (several classes per entry are allowed) or a comma separated list.(empty)
tiptapeditor.preserve_style_attributePreserve style attributes Keep existing style attributes unchanged. Turn off to drop inline styles.Yes

MODX integration ​

KeyDescriptionDefault
tiptapeditor.protect_modx_syntaxProtect MODX tags Keep MODX tags like [[*pagetitle]] and [[!snippet? ...]] exactly as written: shown as protected badges, never escaped or split, also when the text around them is edited.Yes
tiptapeditor.protect_fenom_syntaxProtect Fenom Keep Fenom constructs like {$var}, {if}...{/if} and {foreach} exactly as written: shown as protected badges or cards, never escaped. "{ " with a space stays text (CSS, JSON).Yes
tiptapeditor.fenom_tagsExtra Fenom tags Comma separated names of your own Fenom tags or functions (myTag, other) to protect in addition to the built-in keywords (if, foreach, set, include, ...).(empty)
tiptapeditor.modx_autocompleteMODX autocomplete Suggest fields, snippets, chunks and settings while typing MODX tags.Yes
tiptapeditor.fenom_autocompleteFenom autocomplete Suggest common Fenom variables while typing.No
tiptapeditor.links_across_contextsLinks across contexts No (default): the MODX resource search in the link dialog finds resources in the context of the edited resource only. Yes: in all contexts the user may load (never mgr).No
tiptapeditor.resource_link_formatResource link format href written for a MODX resource chosen in the link dialog. {id} is the resource ID (required); {context} and {uri} are also replaced. Default: [[~{id}]].[[~{id}]]
tiptapeditor.media_sourceMedia source Media source ID for the file browser. Empty uses the context default or the TV source.(empty)
tiptapeditor.media_url_modeMedia URL mode "relative" (default) stores the URL exactly as the MODX Media Browser returns it, like the Image TV; "root" prefixes relative URLs with the site base URL (e.g. /assets/img/a.jpg). Absolute URLs (S3 and other remote sources) are always kept as they are.relative
tiptapeditor.upload_enabledUpload dropped and pasted images Upload images dropped or pasted into the editor into the field's Media Source, folder tiptapeditor.upload_path. Uploads go through the MODX file upload (permission file_upload, the source's policies, allowed file types and upload_maxsize apply). Images are never stored as base64.No
tiptapeditor.upload_pathUpload folder Folder inside the field's Media Source for dropped and pasted images, e.g. assets/uploads/.assets/uploads/

System ​

KeyDescriptionDefault
tiptapeditor.external_configExternal config Path to a JSON file with additional configuration, e.g. {core_path}config/tiptapeditor.json. Only data is read, no code is executed.(empty)
tiptapeditor.debugDebug mode Write diagnostic messages to the browser console and the MODX error log.No