User tests: Successful: Unsuccessful:
This resolve an issue with TinyMCE and the use of width and height on JForm editor field element.
Before applying the patch try to resize the TinyMCE editor via a JForm xml field definition. Add width and height attributes to the editor definition in the xml file
<field
name="default_description"
type="editor"
buttons="true"
label="CONTENT_TEXT_LABEL"
description="CONTENT_TEXT_DESC"
class="inputbox"
filter="JComponentHelper::filterText"
asset_id="com_content"
width="50%"
height="200px"
/>
then open the form to confirm that the editor width/height has not changed.
After applying the patch confirm that the width and height do change.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Libraries |
Rel_Number | 0 | ⇒ | 5820 |
Relation Type | ⇒ | Pull Request for | |
Easy | No | ⇒ | Yes |
I have tested this item unsuccessfully on 46bbf41
Tested with administrator\components\com_content\models\forms\article.xml without changes in behavior.
I have tested this item unsuccessfully on 46bbf41
Added a new field and it also didn´t work
I think the reason it isn't working has something to do with the session, I'll put some work on it Monday evening.
Also since it is a change to the JS, might have to clear the cache.
I'll post more when I find the issue.
Sincerely,
Mathew Lenning
P.S. This message was sent via iPhone, so please forgive any errors
On Oct 24, 2015, at 7:46 PM, designbengel notifications@github.com wrote:
I have tested this item unsuccessfully on 46bbf41
Added a new field and it also didn´t work
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8106.
―
Reply to this email directly or view it on GitHub.
The problem is not here.
The code is same as in Joomla2.5 and this worked perfectly in Joomla 2.5.
I think the problem is in the plugin
Is this going anywhere? I just wasted 15 minutes fighting with this same issue today before remembering there've been several long standing reports on this exact thing.
I didn't test it given the unsuccessful tests and the comment that the submitter would follow up on things.
I figured as much, was just wondering if you used the same code to fix it in your case.
Exceedingly unlikely that this submitter will do anything
On 23 June 2016 at 15:39, Michael Babker notifications@github.com wrote:
I didn't test it given the unsuccessful tests and the comment the
submitter would follow up on things.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8106 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABPH8WAk_DpzKDm_H8mUN70227_R3yNgks5qOpq-gaJpZM4GQqx5
.
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
HI all, i don't have checked, if it work, but why it not work.
Current \plugins\editors\tinymce\tinymce.php do not check for width but html_width XML parameter. So i think changing width in XML do not resolve anything.(this only change the textarea size).
If you check in this file line 916 (joomla 3.5.1)
width : \"$html_width\",
see https://www.tinymce.com/docs/configure/editor-appearance/#width for reference.
if "width" is empty, then editor is always full width and dont check for the text area size.
So i think the best solution, is to use a container and set the width in the container, so editor have right width and can use responsive(if needed).
Note, i don't have check on Joomla if this work, only played with tinyMCE on codepen
Try this : <div style="width:400px"><textarea><p>testing</p></textarea></div>
You can test on original tinymce codepen http://codepen.io/tinymce/pen/NGegZK and add the div tag too see it work.
@Mathewlenning @roland-d @mbabker
One of our PBF users in the Netherlands will look at this issue and come with a fix. (@DanielvanBavel)
#8591 can be closed to and this one can be referenced, when we find more from the same issue we will mention it.
@conconnl Once @DanielvanBavel has created his PR, we can close this one.
@DanielvanBavel Did you create the new PR?
@roland-d is there a PR for this - cant see one
I have send him a message.
Hopefully he will respond today or tomorrow.
@conconnl and @roland-d it already set the height of a textarea field if you set a height into the plugin height value. that was the problem right?
@DanielvanBavel I just remember you found something where it was hardcoded I think. Wasn't the plan to make that overridable? If you can outline what the cause is we can see how to proceed.
I think the problem was that the size was hard coded in the plugin and therefore the size definitions from the xml files in the different views did not work.
The question is do you want to keep the size settings configurable in the plugin or do you want to remove the default values.
When you remove the default values from the plugin I would expect the default values from the views would be used and only when you configure the value in he plugin you would override the view size definition.
We do need a pull request to fix this and see how and if we can keep backwards compatibility. I also wonder when it was changed because I assume when these options were implemented they worked :)
I am closing this at this time as we have a PR
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-22 19:52:23 |
Closed_By | ⇒ | brianteeman |
@brianteeman you can open this issue. PR has been created.
@DanielvanBavel thanks for creating the PR. No need to re-open this - your action of creating a PR created an issue on the tracker we dont need both
@briaanteeman yes i understand that. Thanks for you explantion!
I have tested this item unsuccessfully on 46bbf41
Hi, tested now but I get still the problem.
Changed the XML of administrator\components\com_content\models\forms\article.xml (before and after patch) but nothing changed. :-(
Testing % or px but no change for me.
Jan
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8106.