Hi all,
I want to provide my users with the ability to edit blocks of content on the sites I've designed for them.
Most blocks are contained in a <div>
, and the users can have free choice of the HTML they use inside the block. However, there are some blocks which are contained in, for example, <ul>
tags, and I want to limit the users to only adding or removing <li>
s from the list to follow correct HTML syntax.
I plan to retrieve the HTML from the database and present it to the admin user in a WYSIWYG editor. Is there any editor which will allow me to specify the 'containing tag' of a block, and follow normal HTML syntax rules to limit what can be added inside the block?
For reference, I'm using Zend Framework and PHP for the app.