i've tried many things I've found here on stack, but none seem to help with the
<p> text </p>
<br>
Problem.
What I'm asking is how to switch off by default the <br> making by tinymce.
I know shift-enter does the trick, but I have a user generated site, and having to edit each tinymce input... Well takes too much time.
Thanks.
Try to use
echo str_replace('<br>',' ',$variable_that_echoing);
Related
I have seen some similar questions to mine , but most of them have some code related issue that prevents them from work... In my vase the form submit works well in safari, chrome , firefox
But in the internet explorer version i click the submit button and it doesn't do anything.
Initially i thought it might be a networking problem , or maybe an html problem ? But it doesn't make sense to detect a click and not do the action.
What could possible be the problem ? since the difference between browsers is basically the way they read the html right ?
I'm interested in learning more about this issue !
Thanks in advance !!!
Fixed the problem by changing the <button> </button> tag to an <input type="submit">
maybe that's not a propper solution but it worked for me !!
Hope it helps someone!!
I am trying to show the last time someone uploaded/changed a file in TYPO3 backend.
I tried something like this
<span class="download__specs-item"><f:format.date>now</f:format.date></span>
but this is obviously not what i want, i want to see the date that the given file was last modified.
I am not sure how/where to look after something like this
ps: I don't know how to google properly, lol.
Thank you.
Regards,
a TYPO3 beginner.
If anyone is still looking for the answer, this is how I solved it.
<f:debug>{_all}</f:debug>
On your page, and click through your available properties.
Here is how it worked for me.
<span class="yourclassisprobablyhere">
<f:format.date format="d M Y">
{file.originalFile.properties.modification_date}
</f:format.date>
</span>
I am creating an amp for my webpage. It contains lot of description about places. I want to implement ..show more after 4 lines so that user can see other content also in the mobile first fold (Text is dynamic so can be less than 4 lines also. In that case how can i determine that show more will not come) Is this possible with AMP?? Since I cannot use javascript and css solution is not possible for this, please help me in finding alternatives for the same. I have searched a lot about this but no luck so far. Thanks in advance
You can use an amp-accordion for this:
<p>The first four lines...</p>
<amp-accordion disable-session-states>
<section>
<h4>
<span class="show-more">Show more</span>
</h4>
<p>The remaining text... </p>
</section>
</amp-accordion>
Here is a working example.
When, for example, I write this HTML with tinyMCE:
<p>asdasd</p>
<p class="relevant">asd</p>
<p>as</p>
the php that receives the form post prints the next:
<p>asdasd</p>
<p class=\"relevant\">asd</p>
<p>as</p>
How can turn off this behavior?
Thank you in advance
This is most likely due to the MagicQuotes feature in PHP and is covered in the TinyMCE FAQ.
The simplest way to deal with this is to disable the feature, especially as it has been deprecated as of PHP 5.3.0
An alternative is to clean up the results using
stripslashes($_POST['text']);
I am attempting to modify one of my text input boxes in a form that I have. I would like suggestions to pop up as the user types. Basically, I would like to emulate the "Tags" box that is on the ask question pages here on Stack Overflow, but with different data as the suggestions obviously. How would I go about doing this?
For context, this is for a club at a college, and I am trying to allow members to type in their majors and as they type have a suggestions come up.
This snippet from Cena Mayo did just what I was looking for:
<input id="color" list="suggestions">
<datalist id="suggestions">
<option value="Black">
<option value="Red">
<option value="Green">
<option value="Blue">
<option value="White">
</datalist>
Documentation
jQuery has an autocomplete plugin that you could use.
It depends on what kind of language/platform/etc. you are using as well. I am a primarily .NET developer and I've used the following:
SQL Server for storing data
Web Forms or MVC for the web app
An ashx handler to retrieve and format the suggestions
jQuery plugin above to render the results returned from the ashx underneath an input box
Well if you want to get information from a database on commonly used or already created elements you'll need more than just html. If you just want the form to suggest things people have already input in their own browsing sessions the form will do that automatically.
What I can point you towards is this guys post. He outlines and gives the basic code to get you started on the path for auto suggestion in forms He even gives you the files to get you going, but you'll have to do some modification work.
Also included later in the post somebody adds this to go into the ajax_framework file.
`function clearsuggest() {
e = document.getElementById('results');
e.style.display="none";
}
`
In search.php:
onClick="fill();clearsuggest();return false;"
That section of code will clear the suggestions upon click of a suggestion. Hope this helps and good luck.