I am upgrading one of my component to support Joomla 4 and I am getting this error in webpage
Call to undefined method Joomla\CMS\Editor\Editor::getContent
The code that throws this error is in views->tmpl->edit.php file:
var datdescription = <?php echo $this->editor->getContent( 'datdescription' ); ?>
When I checked Joomla Site for backward compatibility I could not find any solution. But when I checked this link https://api.joomla.org/cms-3/deprecated.html and searched for
getContent I found this:
Joomla.editors API, see core.js
Does anyone know how to solve this?