Skip to content

Instantly share code, notes, and snippets.

@vaderj
Last active June 12, 2018 16:56
Show Gist options
  • Save vaderj/2528588e477daa7f3c4224ca5520959c to your computer and use it in GitHub Desktop.
Save vaderj/2528588e477daa7f3c4224ca5520959c to your computer and use it in GitHub Desktop.
This will enable the numbered list box based on the click event of the specific rich text box, if there is a 'p' tag #Javascript #SharePoint
$(".ms-rtestate-write[id*='Steps']").click(function (){
if ($(".ms-rtestate-write[id*='Steps'] ol").legth > 0)
{
return;
}
else if ($(".ms-rtestate-write[id*='Steps'] p").length > 0)
{
RTE.RichTextEditor.numberedList();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment