? Pending

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
7 Mar 2017

Pull Request complimentary for Issue #14390 .

Summary of Changes

Pass different params for each instance of tinyMCE

Testing Instructions

  • In the global configuration select Tynimce as your default editor.

  • Create a new Editor custom field.

  • Select the Show Buttons as YES!

  • Select in the next input the buttons you want to hide.

  • Save the field.

  • Create a new article

  • Repeat the process but making Show Buttons as NO!

Expected result

Buttons behave according to the given input
screen shot 2017-03-07 at 22 57 58
screen shot 2017-03-07 at 22 58 19

Documentation Changes Required

This might not be B/C compatible (depending the tinyMCE introduced the Joomla.storageOptions)

avatar dgt41 dgt41 - open - 7 Mar 2017
avatar dgt41 dgt41 - change - 7 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Mar 2017
Category JavaScript External Library Front End Plugins
avatar zero-24
zero-24 - comment - 7 Mar 2017

This might not be B/C compatible (depending the tinyMCE introduced the Joomla.storageOptions)

As this was done in 3.7 this is not a problem right?

avatar dgt41
dgt41 - comment - 7 Mar 2017

I couldn't find the PR for that, thanks for clearing this out

avatar zero-24
zero-24 - comment - 7 Mar 2017

should be this here: #11157 @dgt41

avatar dgt41
dgt41 - comment - 7 Mar 2017

@Fedik can you review the changes here?

avatar laoneo
laoneo - comment - 8 Mar 2017

Is this ready for testing?

avatar dgt41
dgt41 - comment - 8 Mar 2017

Yup

avatar laoneo laoneo - test_item - 8 Mar 2017 - Tested successfully
avatar laoneo
laoneo - comment - 8 Mar 2017

I have tested this item successfully on d8d404c


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

avatar infograf768 infograf768 - test_item - 8 Mar 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 8 Mar 2017

I have tested this item successfully on d8d404c

Works nicely.


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

avatar infograf768 infograf768 - change - 8 Mar 2017
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 8 Mar 2017

RTC


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

avatar Fedik
Fedik - comment - 8 Mar 2017

@dgt41 I am afraid it will fail in multiple cases
but, there is possibility to override default options for the editor by the editor field name, introduced in #11157, maybe we can use it somehow here. Also 'default' options are cached.

avatar infograf768
infograf768 - comment - 8 Mar 2017

shall rtc be removed?

avatar dgt41
dgt41 - comment - 8 Mar 2017

yup, let's figure out another way for this

avatar infograf768 infograf768 - change - 8 Mar 2017
Status Ready to Commit Pending
avatar infograf768
infograf768 - comment - 8 Mar 2017

back to pending


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

avatar coolcat-creations
coolcat-creations - comment - 9 Mar 2017

Would be great if it will be possible, i ran into this today :) ?

avatar dgt41
dgt41 - comment - 10 Mar 2017

@Fedik how about: 5d1b0d9

avatar dgt41 dgt41 - change - 10 Mar 2017
Labels Added: ?
avatar Fedik
Fedik - comment - 10 Mar 2017

@dgt41 could work, but still not perfect ?
did you seen, there already test for "whether default parameters loaded"? ? https://github.com/dgt41/joomla-cms/blob/5d1b0d995fd96582116a5813884f0ece31ae0f65/plugins/editors/tinymce/tinymce.php#L203

I think here need something like:

// Load default:
if (empty($options['tinyMCE']['default'])) {
  $options['tinyMCE']['default'] = array(/* default, general, params*/)
}

// Load changes for current name
$options['tinyMCE']['fieldName']['toolbar1'] = 'blabla';
avatar dgt41
dgt41 - comment - 10 Mar 2017

@Fedik I know, but the other option needs a lot of refactoring and due to the legacy method is double work. We can postpone it for J4 when we will do the clean up.

avatar Fedik
Fedik - comment - 10 Mar 2017

I know

then you should note that adding if (!$this->defaultParamsLoaded) make no difference ?

but the other option needs a lot of refactoring and due to the legacy method is double work.

true, but current solution with _' . $id introduce more mess , I think

I try to check more, this weekend, if will get some time ?

avatar Fedik
Fedik - comment - 12 Mar 2017

@dgt41 check this #14520

avatar dgt41 dgt41 - change - 12 Mar 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-03-12 13:32:48
Closed_By dgt41
avatar dgt41 dgt41 - close - 12 Mar 2017
avatar dgt41
dgt41 - comment - 12 Mar 2017

there is a new PR #14520

Add a Comment

Login with GitHub to post a comment