TomPich Posted October 16, 2023 Share Posted October 16, 2023 Hello guys, I have a field that is supposed to be a simple paragraph inside a homepage section. The user is not supposed to be able to insert headings, or list, or whatever block tags. But I still want them to be able to use <b>, <strong>, <sub> and that kind of inline tags. MarkDown Parser would almost do the job, but I’m not 100% happy with the fact that you can’t have <b> and <i> tags with it. <strong> has a semantic meaning that <b> doesn’t have (same for <em> and <i>). And using both of these tags (<strong> and <b>) allows you to apply different CSS rules (like bold and primary colour for <strong>, and only bold for <b>). So I was wondering if there is a way to allow certain HTML tags in a text or textarea field. I saw that there is a Strip Tag option in the Input tab, but it does not allow you to specify allowed tags, like with the strip_tags PHP function... Have a nice day Link to comment Share on other sites More sharing options...
poljpocket Posted October 24, 2023 Share Posted October 24, 2023 I think that the new TinyMCE field offers you exactly what you need. You can configure the toolbar to only contain the controls you want. You can completely redefine the styles menu available and you can configure tags to be removed. Have a look at @ryan's post here. 1 Link to comment Share on other sites More sharing options...
TomPich Posted October 25, 2023 Author Share Posted October 25, 2023 Thanks for your advice. I also got to that conclusion. A restricted TinyMCE field with inline tool bar. Link to comment Share on other sites More sharing options...
bernhard Posted October 25, 2023 Share Posted October 25, 2023 You can use TextformatterRockDown for that. You can any custom tags you like. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now