isEditorEnabled

@static
@return bool true if editor is enabled
436342
public static function isEditorEnabled()
    {
        $dhtmlInput = true;
        $http = eZHTTPTool::instance();
        if ( $http->hasSessionVariable( 'eZOEXMLInputExtension' ) )
            $dhtmlInput = $http->sessionVariable( 'eZOEXMLInputExtension' );
        return $dhtmlInput;
    }
281026
public function can_be_edited() {
        if ($this->canbeedited === null) {
            $this->canbeedited = !quiz_has_attempts($this->quizobj->get_quizid());
        }
        return $this->canbeedited;
    }
1194595
static public function isEditor($request)
    {
        if (! User_Precondition::isLogedIn($request)){
            return false;
        }
        if ($request->user->hasPerm('tenant.owner') || $request->user->hasPerm('cms.editor')) {
            return true;
        }
        return false;
    }
41545
public function isWritable()
    {
        return in_array($this->mode, [
            StreamMode::WRITE_CLEAN,
            StreamMode::WRITE_END,
            StreamMode::CREATE_READ_WRITE,
            StreamMode::CREATE_WRITE,
            StreamMode::READ_WRITE,
            StreamMode::READ_WRITE_CLEAN,
            StreamMode::READ_WRITE_END,
        ]);
    }
1220822
public function allowedToEdit(Page $page = null)
    {
        if ($page === null) {
            return true;
        }

        return Editor::isEnabled() && $this->gate->allows('edit', $page);
    }
1192141
protected function editable()
    {
        if (array_key_exists('editable', $this->attributes) && $this->attributes['editable'] == false) {
            return false;
        }
        return in_array('form', get_class_methods($this));
    }
1061798
protected function saveEditor()
    {
        $this->controlAccessSaveEditor();

        $submitted = $this->getSubmitted();
        $result = $this->editor->save($submitted);

        if ($result === true) {
            $message = $this->text('File has been saved');
            $this->redirect("admin/tool/editor/{$submitted['module']['id']}", $message, 'success');
        }

        $this->redirect('', $this->text('An error occurred'), 'warning');
    }
35237
public function isEditable()
    {
        return $this->read_only || $this->never_persist
            ? false
            : (isset($this->ui['editable']) ? $this->ui['editable'] : !$this->system);
    }
284691
public function isReadOnly(): bool {
		return $this->statelessGuiFieldEditable === null
				|| $this->statelessGuiFieldEditable->isReadOnly($this->eiu);
	}
1061123
public function editorOptions()
    {
        if ($this->editorOptions === null) {
            $this->editorOptions = $this->defaultEditorOptions();
        }

        return $this->editorOptions;
    }
117469
protected function getEditor()
    {
        if (null !== $this->editor) {
            return $this->editor;
        }

        return $this->editor = $this
            ->get('ekyna_cms.editor.editor')
            ->setEnabled(true); // TODO Do this somewhere else
    }
869266
public function is_enabled() {
		$enabled = false;

		// Enabled if this plugin is installed as a regular WordPress plugin.
		$plugin_path = untrailingslashit( ABSPATH ) . DIRECTORY_SEPARATOR . 'wp-content' . DIRECTORY_SEPARATOR . 'plugins';
		$current_dir = $this->current_dir();
		if ( false !== strpos( $current_dir, $plugin_path ) ) {
			$enabled = true;
		}

		// Enabled if the CARBON_BREADCRUMB_ENABLE_ADMIN is defined as `true`.
		if ( defined( 'CARBON_BREADCRUMB_ENABLE_ADMIN' ) && CARBON_BREADCRUMB_ENABLE_ADMIN ) {
			$enabled = true;
		}

		// Allow manual enabling/disabling.
		return apply_filters( 'carbon_breadcrumb_enable_admin', $enabled );
	}
1126064
public function is_enabled() {
        if ($this->enabledcache === null) {
            $this->enabledcache = $this->get_config('enabled');
        }
        return $this->enabledcache;
    }
215679
public function getEditor()
    {
        $provider = $this->getObject('user.provider');

        if($this->hasProperty('modified_by') && !empty($this->modified_by))
        {
            if($this->_editor_id && $this->_editor_id == $this->modified_by
                && !$provider->isLoaded($this->modified_by))
            {
                $data = array(
                    'id'         => $this->_editor_id,
                    'email'      => $this->_editor_email,
                    'name'       => $this->_editor_name,
                    'username'   => $this->_editor_username,
                    'authentic'  => false,
                    'enabled'    => !$this->_editor_block,
                    'expired'    => (bool) $this->_editor_activation,
                    'attributes' => json_decode($this->_editor_params)
                );

                $user = $provider->store($this->_editor_id, $data);
            }
            else $user = $provider->load($this->modified_by);
        }
        else $user = $provider->load(0);

        return $user;
    }
796636
public function isEditMode()
    {
        if ($this->getCollectionPath() == STACKS_LISTING_PAGE_PATH) {
            return true;
        }
        if ($this->getPageTypeHandle() == STACKS_PAGE_TYPE) {
            return true;
        }

        return $this->isCheckedOutByMe();
    }
261891
protected function getEditorConfig()
    {
        $editorConfig = $this->config()->get('editor_config');
        if ($editorConfig) {
            return HTMLEditorConfig::get($editorConfig);
        }
        return HTMLEditorConfig::get_active();
    }
1368326
protected static function isEnabled()
    {
        if ( self::$isEnabled === null )
        {
            $ini = eZINI::instance();
            $useTextTranslation = $ini->variable( 'RegionalSettings', 'TextTranslation' ) != 'disabled';
            self::$isEnabled = $useTextTranslation || eZTranslatorManager::dynamicTranslationsEnabled();
        }
        return self::$isEnabled;
    }