Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22713: LJSUP-13017: Paid Repost in update.bml a...

Committer: anazarov
LJSUP-13017: Paid Repost in update.bml and editjournal.bml
U   trunk/htdocs/js/rte.js
Modified: trunk/htdocs/js/rte.js
===================================================================
--- trunk/htdocs/js/rte.js	2012-08-21 14:45:08 UTC (rev 22712)
+++ trunk/htdocs/js/rte.js	2012-08-21 15:04:24 UTC (rev 22713)
@@ -7,6 +7,12 @@
 		processDraft,
 		lastValue;
 
+	$(function () {
+		$('#draft').on('change keyup paste', function () {
+			LiveJournal.run_hook('editor_data_changed', $(this).val());
+		});
+	});
+
 	window.initEditor = function(data) {
 		data = data || {};
 		processDraft = !!('isInitDraft' in window);

Tags: anazarov, js, livejournal, nfokz
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments