I have a xml file with data
<ul>
<li><info>CSS text formatting </info></li>
<li><info>Text loaded from a XML</info></li>
<li><info>Scrolls with easing</info></li>
</ul>
For editing the content i have used tinymce editor.For editing i am parsing the xml file and putit in a textarea that is for timymce edtor.In the editor i am getting the <info> tag after the <li> tag.But when iam submitting the value the <info> tag is not getting.How i can get <li><info>Text loaded from a XML</info></li> when i am submitting the form.Thanks in advance.
info is not a valid html tag.
Add this code in tinymce configuration
extended_valid_elements : "info",
custom_elements: "info",
Related
I'm trying to use OpenTBS on my project to generate automatically a Resume using a word template (.docx)
the template contains multiple images for the frame of the template.
when I try to generate the file with my data, i noticed with the debug option that the opening tags disappear when I use block=tbs:row inside.
here is my php code :
$domains=array(
array('id1'=>"xxx",'id2'=>"xxx"),
array('id1'=>"yyyy",'id2'=>"yyyy"),
//...
);
$tbs->LoadTemplate('mytemplate.docx', OPENTBS_ALREADY_UTF8);
$tbs->MergeBlock('domain', $domains);
on my docx side :
[domain.id1;block=tbs:row] :
[domain.id2]
these tags are inside a table which is inside a textbox.
after 2 days debugging I realized that some opening textbox tags disappear on generation causing an xml parsing error opening the document
edit : After some other tests, it's when I use the block tag inside a textbox that the bug appears.
thanks for your help.
Matt.
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?
I am using TinyMCE and RoxyFileBrowser to create text files with images and saved them in a database.(only the html content of textarea). When I am reloading the saved content from database the images are not loading. when I checked I find out in TinyMCE html sorce code image src is incorrect. So I edit the RoxyFileBrowser conf.json as
"RETURN_URL_PREFIX": "/",
Now in the TinyMCE Insert/Edit Image window source URL is displayed as needed. But still the tinyMCE html content has wrong image src url.
Source URL=/fileman/....... - which is needed one
img src="../fileman/....." which is incorrect
What is the reason for this error?
Ok finally I found the answer.
The problem is with tinymce is trying to use relative URLs. So turn it off in tinymce.init function
relative_urls : false,
Example: "RETURN_URL_PREFIX": "http://localhost:59184/"
"RETURN_URL_PREFIX" is your domain
i want to add new attribute in XML using jquery
for e.g:
XML:
new XML i want display as:
<data>
<section marked="marked"></section>
</data>
from above i want to add marked="marked" attribute using jquery.
You can add attribute in any XML tag as you add in HTML
First your XML is saved in any variable
var a = '<data><section></section></data>';
Edit
Now you have to add this line too and it will work fine.
a = $(a);
This line will add an attribute in section tag
a.find('section').attr('marked', 'marked');
I have a xml file with content
<ul>
<li><info>Some text here</info></li>
</ul>
I have parsed the xml file and show this in a page.info is a css class.In the page the text showing with css.When i am editing the content in tinymce editor how i can apply the css in the editor.In the editor the text is showing like <div mce_name="info">CSS text formatting </div>Thanks in advance.
Add the styles to the tinymce style sheet, they should appear in 'styles' the drop down.