Blockproperties

Contents

Links

Introduction

Blockproperties is a plugin for the popular TinyMCE WYSIWYG HTML editor. It enables the editing of some common attributes of block elements (eg div, p, h1 - h6 etc).

Blockproperties was originally written by Andrew Tetlaw and announced in this blog post. I've updated the original plugin to work with TinyMCE version 3.

Installation

Download the latest verssion and unpack it into your TinyMCE plugins directory.

Add 'blockproperties' to your loaded plugins and to your toolbar button row. eg

tinyMCE.init({
        theme : "Love",
        mode : "textareas",
        plugins : "blockproperties",
        theme_advanced_buttons3_add : "blockproperties"
});

Blockproperties buttonAdding 'blockproperties' to your buttons next to the 'formatblock' entry makes the the UI a little more intuitive. To use, simply place the cursor within the block element you wish to edit and click the button. The element selected will be the block element immediately containing the current cursor position.

Licence

Blockproperties is released under the GNU Lesser General Public Licence.

Blockproperties in useUsing blockproperties