{"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": "
\n
\n
\n \n
\n
\n
\n First Blue Monkey@FirstBlueMonkey_HM087\n 2 years ago\n \n
\n
\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
\n
\n
\n
\n
\n \n \n \n \n \n \n
\n
\n
"}, {"id": 37, "post_id": 36, "author_id": 4, "comment_text": "@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.", "points": 0, "date_created": "2021-04-29 08:53:48", "first_name": "Christopher", "surname": "Thornton", "username": "Instructobit", "profile_pic": "users/4/15T6LY0OGG0MZ2DZEJP4V1NO56JRF858HO0H6RJCQZWJGAXJYR.jpg", "rate_points": 0, "guest_name": "", "guest_email": "", "profile_thumbnail": "users/4/15T6LY0OGG0MZ2DZEJP4V1NO56JRF858HO0H6RJCQZWJGAXJYR_thumbnail.jpg", "comment_time": "3 years ago", "is_mine": false, "html": "
\n
\n
\n \n
\n
\n
\n Christopher Thornton@Instructobit\n 3 years ago\n \n
\n
\n

@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.

\n
\n
\n
\n
\n
\n \n \n \n \n \n \n
\n
\n
"}, {"id": 36, "post_id": 36, "author_id": 66, "comment_text": "Wow, 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?", "points": -1, "date_created": "2021-04-29 08:45:33", "first_name": "", "surname": "", "username": "mhmdshesht2020", "profile_pic": "img/defaultProfile.png", "rate_points": 0, "guest_name": "", "guest_email": "", "profile_thumbnail": "img/defaultProfile_thumbnail.png", "comment_time": "3 years ago", "is_mine": false, "html": "
\n
\n
\n \n
\n
\n
\n @mhmdshesht2020\n 3 years ago\n \n
\n
\n

Wow, 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?

\n
\n
\n
\n
\n
\n \n \n \n \n \n \n
\n
\n
"}, {"id": 28, "post_id": 36, "author_id": 58, "comment_text": "Very nice, thanks for your post! , full explanation.", "points": -1, "date_created": "2021-03-12 00:37:45", "first_name": "", "surname": "", "username": "juanhlb", "profile_pic": "img/defaultProfile.png", "rate_points": 0, "guest_name": "", "guest_email": "", "profile_thumbnail": "img/defaultProfile_thumbnail.png", "comment_time": "3 years ago", "is_mine": false, "html": "
\n
\n
\n \n
\n
\n
\n @juanhlb\n 3 years ago\n \n
\n
\n

Very nice, thanks for your post! , full explanation.

\n
\n
\n
\n
\n
\n \n \n \n \n \n \n
\n
\n
"}], "more": false, "filterby": "Newest"}, "flash_data": [], "extra_data": [], "rq_ref": "9f3c8be6-15da-431e-9422-e2ecc5b30abf"}