franciccio-ITALIANO Posted January 21 Share Posted January 21 Hi, in style.css I created 3 templates <blockquote> <blockquote2> <blockquote3> but processwire text editor automatically corrects and deletes <blockquote2> <blockquote3> code. How can I choose freely? Link to comment Share on other sites More sharing options...
virtualgadjo Posted January 21 Share Posted January 21 hi, maybe adding something like this in the custom json (if you're using blockquote2 and 3 as tags { "extended_valid_elements": "blockquote2[id|class|style],blockquote3[id|class|style]" } even if seems honestly curious as blocquote class="xxx" sounds a little bit more html friendly 🙂 have a nice day Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted January 22 Author Share Posted January 22 ok but where... in which processwire part I have to add this json code? Link to comment Share on other sites More sharing options...
virtualgadjo Posted January 22 Share Posted January 22 hi, if you're using pw tinyMCE it's in the setting tab of the field have a nice day Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted January 31 Author Share Posted January 31 On 1/22/2024 at 4:34 PM, virtualgadjo said: hi, if you're using pw tinyMCE it's in the setting tab of the field have a nice day No I use standard CK Editor! Link to comment Share on other sites More sharing options...
virtualgadjo Posted February 1 Share Posted February 1 hi, in this case you have many options... - simply unable ACF and Html purifier, good practice if you rely on the person whomanage the website (you? :)) more risky if you don't - use the extra allowed content your field... field tab) with things like blockquote2[[attributes]{styles}(classes) blockquote3[[attributes]{styles}(classes) - or even adding a ckeditor config.js file adding or overwriting native rules but honestly, more useful when using special plugins or if you neede to implement special dropdown menus something i often did in ck editor area 🙂 but the previous solutions are a bit more simple have a nice day 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