Skip to content

Wishlist item/Feature request: exclude buttons, instead of include #1654

@mapsedge

Description

@mapsedge

If I want the default toolbar without a button, the script looks like

		$("#divnotes").trumbowyg({
			btns: [
				['viewHTML'],
				['undo', 'redo'],
				['formatting'],
				['strong', 'em', 'del'],
				['superscript', 'subscript'],
				['link'],
				// ['insertImage'],
				['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
				['unorderedList', 'orderedList'],
				['horizontalRule'],
				['removeformat'],
				['fullscreen']
			]
		});

Note the "insertImage" button is commented out or removed. I want everything else in the default. Would love something shorter that excludes a button from the default list, something like:

		$("#divnotes").trumbowyg({
			btns: [
				['-insertImage'],
			]
		});

btns minus insertImage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions