| @@ -194,20 +194,8 @@ | ||
| 194 | 194 | return true; |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | /** |
| 198 | - * Whether WordPress post preview or Elementor preview iframe is active. | |
| 199 | - * | |
| 200 | - * @since 4.1.0 | |
| 201 | - * @access public | |
| 202 | - * | |
| 203 | - * @return bool | |
| 204 | - */ | |
| 205 | - public function is_editor_or_preview() { | |
| 206 | - return is_preview() || $this->is_preview_mode(); | |
| 207 | - } | |
| 208 | - | |
| 209 | - /** | |
| 210 | 198 | * Builder wrapper. |
| 211 | 199 | * |
| 212 | 200 | * Used to add an empty HTML wrapper for the builder, the javascript will add |
| 213 | 201 | * the content later. |
| @@ -306,9 +294,8 @@ | ||
| 306 | 294 | private function enqueue_scripts() { |
| 307 | 295 | Plugin::$instance->frontend->register_scripts(); |
| 308 | 296 | |
| 309 | 297 | Plugin::$instance->widgets_manager->enqueue_widgets_scripts(); |
| 310 | - Plugin::$instance->elements_manager->enqueue_elements_scripts(); | |
| 311 | 298 | |
| 312 | 299 | $suffix = Utils::is_script_debug() ? '' : '.min'; |
| 313 | 300 | |
| 314 | 301 | wp_enqueue_script( |