Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TinyMCE で文字を制限するためにたくさんグーグルで検索しましたが、何も機能していません! ユーザーが 500 文字を超えて入力する場合、メッセージ ボックスを作成するにはどうすればよいですか?
TinyMCE 4 では、on change イベントにフックできます。
$(document).on('tinymce:changed', function() { content = tinyMCE.activeEditor.getContent(); // check length of content and do whatever you want });