| @@ -25,8 +25,9 @@ | ||
| 25 | 25 | // Add TinyMCE button for adding shortcode! |
| 26 | 26 | add_filter('mce_buttons', array($this, 'addButton')); |
| 27 | 27 | // Enqueue dependencies scripts. |
| 28 | 28 | self::enqueueScripts(); |
| 29 | + self::enqueueStyles(); | |
| 29 | 30 | } |
| 30 | 31 | |
| 31 | 32 | /** |
| 32 | 33 | * put your comment there... |
| @@ -44,10 +45,8 @@ | ||
| 44 | 45 | * |
| 45 | 46 | * @param mixed $tpl |
| 46 | 47 | */ |
| 47 | 48 | public function display($tpl = null) { |
| 48 | - // Push vars into view! | |
| 49 | - | |
| 50 | 49 | // Output view! |
| 51 | 50 | echo $this->getTemplate($tpl); |
| 52 | 51 | } |
| 53 | 52 | |
| @@ -58,11 +57,22 @@ | ||
| 58 | 57 | public function enqueueScripts() { |
| 59 | 58 | // Please thos scripts below should be already loaded |
| 60 | 59 | // by the metabox views If the tinymce is loaded inside the editbox |
| 61 | 60 | // IN OTHER CASES!!! what is the other cases! we load it! |
| 62 | - self::useScripts(__CLASS__, 'framework:js:ajax:{CJT-}cjt-server'); | |
| 61 | + self::useScripts(__CLASS__, | |
| 62 | + 'thickbox', | |
| 63 | + 'framework:js:ajax:{CJT-}cjt-server' | |
| 64 | + ); | |
| 63 | 65 | } |
| 64 | 66 | |
| 67 | + /** | |
| 68 | + * put your comment there... | |
| 69 | + * | |
| 70 | + */ | |
| 71 | + public function enqueueStyles() { | |
| 72 | + self::useStyles(__CLASS__, 'thickbox'); | |
| 73 | + } | |
| 74 | + | |
| 65 | 75 | /** |
| 66 | 76 | * put your comment there... |
| 67 | 77 | * |
| 68 | 78 | * @param mixed $plugins |