Skip to content

Deprecate editor form field save function#17944

Merged
mbabker merged 5 commits intojoomla:3.9-devfrom
Digital-Peak:j3/deprecate/editor/save
Jun 29, 2018
Merged

Deprecate editor form field save function#17944
mbabker merged 5 commits intojoomla:3.9-devfrom
Digital-Peak:j3/deprecate/editor/save

Conversation

@laoneo
Copy link
Copy Markdown
Member

@laoneo laoneo commented Sep 12, 2017

Pull Request for Pr #17942.

Summary of Changes

As the editor save function is deprecated, the editor form fields needs to be deprecated too. This pr does that.

Testing Instructions

Edit article on the front end.

Expected result

It works.

Actual result

It works.

{
return $this->getEditor()->save($this->id);
$editor = $this->getEditor();
if (!method_exists($editor, 'save'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you're trying to use JEditor from both 3.x and 4.x simultaneously this will always be true on the 3.x branch and false on 4.x. So, no need to make a change.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to have both plugins from 4 supported on Joomla 3.

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Sep 12, 2017

This needs testing to ensure the removed line does not have side effects.

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Sep 12, 2017

Removed the line removal, as it was an invalid code change from the pr against 4.

@ghost
Copy link
Copy Markdown

ghost commented Oct 29, 2017

@laoneo can this PR be tested?

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Oct 30, 2017

Yes.

@ghost
Copy link
Copy Markdown

ghost commented Oct 31, 2017

I have tested this item ✅ successfully on 0078d74

Open Article in Frontend, change and save Article by hit Save-Button on Bottom works (test using TinyMCE).


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17944.

@laoneo laoneo changed the base branch from staging to 3.9-dev June 20, 2018 11:05
{
return $this->getEditor()->save($this->id);
$editor = $this->getEditor();
if (!method_exists($editor, 'save'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a blank line before if statement.

@carlitorweb
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 4c2aa03


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17944.

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jun 26, 2018

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17944.

@joomla-cms-bot joomla-cms-bot added RTC This Pull Request is Ready To Commit and removed RTC This Pull Request is Ready To Commit labels Jun 26, 2018
@laoneo laoneo deleted the j3/deprecate/editor/save branch January 13, 2021 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants