{"status": "Comment load successful", "status_code": "0000", "http_code": 200, "data": {"postid": 36, "comments": [{"id": 135, "post_id": 36, "author_id": 242, "comment_text": "Good. By the way, I'd like to know the following issue.\nIf I use \"fontSize\", the unit of font size is not \"px\".\nHow can I use \"px\" as changed unit?\ndocument.execCommand( \"fontSize\", false, \"4\" ); ", "points": -1, "date_created": "2022-01-22 18:52:40", "first_name": "First", "surname": "Blue Monkey", "username": "FirstBlueMonkey_HM087", "profile_pic": "users/242/M3P8KTUX03QBW6J6LEQAMOJDJG56UKXD5OUHWAYIF4A1EJONW8.jpg", "rate_points": 0, "guest_name": "", "guest_email": "", "profile_thumbnail": "users/242/M3P8KTUX03QBW6J6LEQAMOJDJG56UKXD5OUHWAYIF4A1EJONW8_thumbnail.jpg", "comment_time": "2 years ago", "is_mine": false, "html": "
@mhmdshesht2020 If you're intending to create your own rich text editor for your web site I would actually suggest using a framework like CKEditor or Quill JS (That's the one I use). Making your own with execCommand is quite possible and I've done it before, however they tend to grow quite complex and browser compatibility tends to be a pain, so in my experience I would rather suggest a framework.
\nWow, That's really great. thanks so much for that. and I would like to ask is it possible to build a custom bootstrap editor using execCommand?
\nVery nice, thanks for your post! , full explanation.
\n
Good. By the way, I'd like to know the following issue.\nIf I use "fontSize", the unit of font size is not "px".\nHow can I use "px" as changed unit?\ndocument.execCommand( "fontSize", false, "4" );
\n