In this article you will see how to get all the permission levels for a site in SharePoint 2010 using ECMAScript. I have a SharePoint site which has the following permission levels (Navigate to the SharePoint site. Click on Site Actions and then click on Site Settings. Click on Site Permissions in the Users and Permissions section. In the ribbon interface, click on Permission Levels).
Step 1 : Navigate to the SharePoint site (I have a site page created in my site where I am going to add the content editor web part). Step 2 : Go to Site Actions, click on Edit Page
Step 3 : Click on the Insert tab in the ribbon interface and then click on Web Part button.
Step 4 : Select Media and Content in the Categories section and then click on Content Editor.