I have no issue in adding ckeditor to my webpage but when i insert a html source and submit the form. It returns the value with a html tag on it.
<p>This is some <strong>sample text</strong>.</p>
You can checkout the demo here http://www.ier.cl/intranet/OC/public/assets/javascript/ckeditor/_samples/php/standalone.php
How to remove the html tag on php?
Related
I am making a wordpress plugin, you can edit a page's title with it.
The title will be an H1 Tag with the ID of featuredTitle.
<h1 id="featuredTitle">This text will be replaced!</h1>
Now I need an input that opens the file "myPage.php" and replaces the text.
I am new to PHP so help would be highly appreciated.
I want to check all those elements in my page which are not enclosed within the html tags properly. for example i have the following scenario:
This is the picture of my village <img src="path_to_image" <br> some other text.....
Here in the above string in the page which also contained the tag after the image tag in the string and want to complete it with jQuery.
Please also note that the contents are displayed on my page from mysql database table.
Any help will be appreciated. thanks
try and run your markup through a validator:
https://validator.w3.org/
My index.php page uses a template called template.html, and this html file has a form in it. The first line of the form is:
<form name="search" method="get" action="thumbnails.php?#myAnchor">
thumbnails.php also uses template.html as a template. When a user submits the form on the index page, I want it to redirect to thumbnails.php (as it does now) but then go to the anchor I've written in template.html like this:
<a name="myAnchor"></a>
You can test it for yourself below, just search for "nature" in the top search box and it'll redirect you to the top of thumbnails.php but I want it to scroll down to the anchor tag embedded in the template file (seen in thumbnails.php source code) -- My Site
Here is the link to thumbnails.php
and here's the link to template.html
I've read tons of solutions but nothing seems to work. Ideas?? Thank you
As Dai said in their comment,
[...] the HTML5 specification removed the name="" attribute from the
<a> element (obsolete note). The specification for
fragment scrolling gives preference to id over name and only gives
instructions for name attributes for backwards-compatibility.
In your code you have to add an id attribute to your anchor in template.html:
<a name="myAnchor" id="myAnchor"></a>
Hi I'm working with Magento 1.7
I create a text area attribute with wysiwyg allowed and visible on the product page.
when I insert an image I can see only the html text of the attribute, images don’t appear.
If I analyse the generated html code, I can see that the code included by the wysiwyg editor like
src="{{media url="image.jpg"}}
has not been parsed.
The code I use is:
echo $ _Product-> getData ('technical_support');
I tried to print the attribute with
echo $this->helper('cms')->getBlockTemplateProcessor()->filter($this->helper('catalog/output')->productAttribute($this->getProduct(), nl2br($_technical_support), 'technical_support') );
But the attribute is not printed
How can I fix it?
Thanks for your help.
This is how u have to call the images through wysiwyg editor. You have to click show/hide button. Then u can write html tags there. Here is the example
<p class="home-callout"><img src="{{skin url='images/ph_callout_left_rebel.jpg'}}" alt="" /></p>
Flower brackets are missing in ur code.
And for attribute, your process is wrong.. Follow this link Calling an attribute in a CMS block in magento
I am using ckeditor , but if i am trying to enter data from an iphone,its insert an additional body tag to the data base,but its work fine in computers.How can i avoid this extra body tag .
I am using editor.getData() for taking data from ckeditor.
Any one please help me