Browse Source

#1100 Froala editor

Alex Trofimov 8 năm trước cách đây
mục cha
commit
9743b1e5ea
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      samples/editor.php

+ 1 - 1
samples/editor.php

@@ -51,7 +51,7 @@ function PageCompMainCode()
     // standard editor in popup
 
     echo BxTemplFunctions::getInstance()->popupBox('bx-sample-editor-in-popup', 'popupBox', 'Editor in popup', true);
-    echo '<button class="bx-btn" onclick="$(window).dolPopupAjax({url: \'samples/editor.php?action=editor&_t=b'.time().'\', removeOnClose: true})">Editor in popup</button>';
+    echo '<button class="bx-btn" onclick="$(window).dolPopupAjax({url: \'' . BX_DOL_URL_ROOT . 'samples/editor.php?action=editor&_t=b'.time().'\', removeOnClose: true})">Editor in popup</button>';
 
     
     if ($oEditor) // check if editor is available for using