Last active
June 12, 2018 16:56
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".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