[livejournal] r22297: LJSUP-12120: Implement editor widget
Committer: atyurin
LJSUP-12120: Implement editor widgetU trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js
===================================================================
--- trunk/htdocs/js/ck/plugins/livejournal/plugin.js 2012-06-20 15:11:51 UTC (rev 22296)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js 2012-06-21 07:29:16 UTC (rev 22297)
@@ -2,6 +2,8 @@
var CKLang = CKEDITOR.lang[CKEDITOR.lang.detect()] || {};
jQuery.extend(CKLang, LJ.pageVar('rtedata'));
+ CKEDITOR.styleText = Site.statprefix + '/js/ck/contents.css?t=' + Site.version;
+
var likeButtons = [
{
label: CKLang.LJLike_button_repost,
@@ -973,9 +975,7 @@
})();
// LJ Poll Button
- if (top.canmakepoll) {
- var currentPoll;
-
+ if (Site.page.makepoll) {
CKEDITOR.dialog.add('LJPollDialog', function() {
var isAllFrameLoad = 0, okButtonNode, questionsWindow, setupWindow, onLoadPollPage = function() {
if (this.removeListener) {
