Forums / Developer / Fewer valid HTML tags in XML Block
Piotrek Karaś
Thursday 24 May 2007 5:34:27 am
Hello,
Is there a way to limit the tags for XML Block that would be valid? I am pretty sure I would make it a little ambiguous with my choice of English vocabulary, so here's what I want to achieve:
I want users of my site to be able to publish articles with very limited formatting capabilities. Let's say they should be able to: - make paragraphs or brake lines - make selected phrases bold or italic - add a linkThey should not be able to format anything else (for example create tables). They don't need to have access to an editor interface, they can type in the tags along with the text, just like you do when posting a new topic on this forum.
Maybe there's some better way of reaching the goal? Maybe it is possible to limit the capabilities of OE just as it is possible to compose the final functionality of TinyMCE or other HTML editors?
Any suggestions greatly appreciated! Thanks!
-- Company: mediaSELF Sp. z o.o., http://www.mediaself.pl eZ references: http://ez.no/partners/worldwide_partners/mediaself eZ certified developer: http://ez.no/certification/verify/272585 eZ blog: http://ez.ryba.eu
André R.
Thursday 24 May 2007 9:28:48 am
This is functionality that might get included in next oe version (4), but it is a sponsored functionality and I don't know if they have finalized the spec for it. If your interested in having a say / sponsoring this kind of functionality contact jy [AT] ez .
As for tag limitation in TinyMCE, this is fine, but only counting on javascript to restrict something is like telling kids to not play with the toys in a toy store.. :)
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Monday 28 May 2007 9:17:35 pm
Thanks for the reply and the info.
As to the tinyMCE or other editors - yes, any validation within the browser provides functionality rather than validation itself (or at lease not the one you can trust). That's why what I am after is a validation configuration on the eZ Publish server side, that would only validate/accept particular hypertext or xml tags/elements. If I had achieved that, it would have just been a little more convenient for the user to see the minimum amount of icons/functions, and that's where tinyMCE's flexibility comes handy, but it is naturally a secondary goal.