794 Posts in 409 Topics by 304 members
|Go to End||Next >|
2 March 2009 at 4:09pm
I installed the HTML widget on a new 2.3.0 site (have previously used widget on 2.2.3 sites) and the text editor not displaying when you first drag the widget onto the widget area seems to make the entire page un-saveable or unable to be published. all you get is an error 'e =null'
Can anyone assist?
26 March 2009 at 6:58am
I have the same problem with HTML widget after upgrading to 2.3.1. When you click "Save" or "Save and publish" the page loads for ever but nothing happens.
Any one have a soulution?
27 March 2009 at 2:44pm
I had the same issues, but I managed to get it. I used Firebug, and checked whether there is a HTMLEditor there was but it was hidden, I removed made it visible, and added some content and did a save and publish.
After that I never saw it is hidden. There must be some bug in this, but my tip can serve you to make your website .
30 March 2009 at 10:43pm Last edited: 30 March 2009 10:44pm
I too have the same problem (SS2.3.0)
One of the pages in the API documentation mentions that you can only have one global instance of the TinyMCE editor but I have tested a DoubleContentPage type that had two HTMLEditorFields on the Root.Content.Main tab and it worked flawlessly.
I also modified the HTMLContent widget, changing the HTMLEditorField to a TextArea field, and I could then add it to the widgets section and save text without issue (obviously no TinyMCE editor). I then changed the TextArea field back to a HTMLEditorField (in HTMLContentWidget.php) and got the TinyMCE editor when I refreshed the page. I can edit, save and publish BUT for some reason the TinyMCE editor is not editing just the TextArea but the stuff immediately arround it.
As a comparison between expected and actual behaviour see the attached picture. There is a Content field on the Root.Content.Main tab, it has a label above it and a grey box arround it. On the Root.Content.Widget tab I have an HTMLContent field but instead of the TinyMCE editor just editing the contents of this field it also allows me to edit the label and I get a field within a field. The only thing HTMLContent should contain is 222222222222222222222 but as you can probably just about make out is also contains the HTML paragraph tags, the grey box that should *surround* the editor and the field name.
Don't have any more time to spend on this now, but this may help someone solve it; ultimately I think this will need to be fixed by the Silverstripe team. To get round it I may use a modified version of the Random Content Widget that displays all child pages rather than one random one. This may be nicer from a user perspective because it avoids having the TinyMCE editor stick out of the side of the widget box (see screenshot), although I'm sure that's fixable too.
30 March 2009 at 11:29pm
<div id="Widget[HTMLContent]" class="field htmleditor ">
<label class="left" for="HTMLContent">HTMLContent</label>
<textarea class="htmleditor typography" rows="20" cols="20" style="width: 97%; height: 320px" tinymce="true" id="Widget[HTMLContent]" name="Widget[HTMLContent]">
<p><label class="left" for="HTMLContent">HTMLContent</label></p><div class="middleColumn"><textarea id="Widget[HTMLContent]" class="htmleditor typography" style="width: 97%; height: 320px;" cols="20" rows="20" name="Widget[HTMLContent]">&lt;p&gt;11111111111111&lt;/p&gt;</textarea></div>
Looking at the contents of the textarea, and converting the escaped tags, we see that it starts
<p><label class="left" ...
which we can see further up the html. So why is it getting confused, well it's probably due to the duplicated id Widget[HTMLContent] which is used for the outer div and the textarea.
So, that looks like the problem, the question is, how do we fix it?
9 April 2009 at 3:38am
So is it a bug in the HTML widget or in the latest relese of SilverStripe that cause this problem? And will it be fixed in the next relese of SilverStripe?
20 April 2009 at 9:30pm Last edited: 24 May 2009 12:30am
As far as I'm concerned it's a SilverStripe bug.
<br >You can use the widget but without the TinyMCE editor by editing the widget:
<br >To edit the HTMLContentWidget:
<br >Change the HTMLEditorField to a TextareaField in the getCMSField function in HtmlContentWidget.php
<br >Add?flush=1 and reload the CMS page you're editing.
<br >You should now be able to delete the widget.
<br >Will it be fixed in the next version (2.3.2) of SS?
<br >No. Last time I looked there wasn't anybody looking at this, so it's unlikely to be fixed anytime soon. See http://open.silverstripe.org/ticket/2836 for information on a related bug.
|Go to Top||Next >|