New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with tinyMCE width and height, joomla 3.7 #15059
Conversation
tinyMCE plugin php
Merge Patch 1
@@ -52,10 +52,6 @@ PLG_TINY_FIELD_FUNCTIONALITY_DESC="Select level of functionality." | |||
PLG_TINY_FIELD_FUNCTIONALITY_LABEL="Functionality" | |||
PLG_TINY_FIELD_HR_DESC="Show or hide the Horizontal Rule button." | |||
PLG_TINY_FIELD_HR_LABEL="Horizontal Rule" | |||
PLG_TINY_FIELD_HTMLHEIGHT_DESC="Height of HTML editor. Only applies in Advanced and Extended mode." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't remove the unused language strings. You can mark them as unused but the standard says we don't delete thrm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK! I was not sure. How do I mark them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like
; The following xxx strings are deprecated and will be removed with 4.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brianteeman
Thanks. Now I only have to find out how to revert the change and add the new line. I'm only using gitHub occasionally. Any hint?
sorry, not very understood your question, |
@Fedik |
I have tested this item ✅ successfully on 122caac This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15059. |
@AlexRed |
yes, also I hope we can solve the tinyMCE width problem in 3.7.0 or 3.7.1 |
@brianteeman I've reverted the language change and added a remark |
I can't think of any situation where a width <> 100% (see images above) is needed. If you know one, I've now tested a solution using Fediks editor instances that works fine. |
I have tested this item 🔴 unsuccessfully on 8a2f338 Error on "Articles: Edit" in Backend: System information3.7.1-dev MAMP 4.1.1
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15059. |
@franz-wohlkoenig As far as I can see this PR has nothing to do with this javascript loading error. |
jdragdrop/plugin-min.js doesn't exist.
Folder exist. |
@franz-wohlkoenig |
@franz-wohlkoenig |
Clean Install of latest nightly Build. After applied PR got Error described in Comment |
@franz-wohlkoenig |
@franz-wohlkoenig |
As I understand this should not be possible. |
Yep, Patchtester can cause some funny results if the PR branch doesn't have conflicts but is outdated neverthless. Because it copies the files instead of merging the changes. |
Update from Joomla/cms staging
@Bakual |
I think there are some confusions about the computed values of the width and height values for the tinyMCE editor. Personally I categorize this as a bug.
In theory there could be a lot of default settings but this is more simple.
We get the values from user editable system wide parameters (with some funny results like height=750, the tinyMCE default )):
Article edit
A second field in article edit as in PR 14520.
Article frontend editing.
The Joomla editor form field will never get any settings from external sources as default.
My propasal is to set the width hardcoded to 100% (or auto) and the height from:
Expected result
As tinyMCE automatically gets the height values from the hidden textarea field, we don't have to explicit set any values in the tinyMCE options. As well, we don't have to set any editor instance values as in #14520.
If you want a width per field, this has to be added to each editor instance as in PR #14520. As far as I could see there is no automatic loading as with the height.
In this PR I have removed the parameters in the tinyMCE editor, removed the tinyMCE options, added defaults in tinyMCE code and deprecated the language strings. I did not change the legacy part. Width is now overridable with a custom template/layout and height by using a custom system plugin - method onBeforerender().
Test instructions:
In the article form XML administrator/components/com_content/models/forms/article.xml add one more editor element (somewhere after line
<fieldset name="basic" label="COM_CONTENT_ATTRIBS_FIELDSET_LABEL">
)<field name="text2" type="editor" hide="menu,module,contact" label="Text2" description="" filter="JComponentHelper::filterText" buttons="true" height="250"/>
Check the result without adding the patch. Play with the tinyMCE editor settings a bit. Go to the tab(s) advanced in tinyMCE and modify Width and Height to what a user could enter. e.g. width 50%, height=200.
Have a look to the new second field in article edit, backend categories and frontend article edit/creation as well.
Apply this patch.
There are no settings so just reload the article edit page and .
Check and compare the results.
@Fedik Is it easy to add the width if !100% as in PR 14520? The width could then be set in the form field. Needed?
Related
#14917
#14835