के अंदर एचटीएमएल, हेड, बॉडी टैग को हटाकर मैं अपने प्रोजेक्ट में टिनीमेस में केवल बॉडी एलिमेंट की सामग्री प्राप्त करना चाहता हूं और फिर उस भाग को किसी अन्य पेज के अंदर इंजेक्ट करना चाहता हूं। जब मैं अपने नियंत्रक को अपना टेक्स्टरी सबमिट करता हूं तो टिनिमस की सामग्री में, और HTML टैग होता है।TinyMCE
उनसे छुटकारा पाने के लिए कैसे? क्या ऐसा करने के लिए TinyMce के अंदर कार्यक्षमता में कोई भी निर्मित है?
<script type="text/javascript">
/*tinymce definition*/
tinymce.init({
selector: "textarea.tinymce",
theme: "modern",
height: 10,
plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker example fullpage",
"searchreplace visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
"save table contextmenu directionality emoticons template paste textcolor wordcount"
],
content_css: "css/content.css",
toolbar: "insertfile undo redo | styleselect | save | table | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons charmap code | hr paste pagebreak searchreplace spellchecker template visualblocks insertdatetime",
style_formats: [
{title: 'Bold text', inline: 'b'},
{title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
{title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
{title: 'Example 1', inline: 'span', classes: 'example1'},
{title: 'Example 2', inline: 'span', classes: 'example2'},
{title: 'Table styles'},
{title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
]
});
</script>
और मेरी html पृष्ठ में:
यहाँ मेरी कोड है
<div class="page-content">
<form action="somewhere" method="post" role="form">
Title:<br/> <input type="text" name="title" style="width:100%"/><br/> <br /> Your Text:<br/>
<textarea name="content" class="tinymce" cols="30" rows="10" ></textarea>
<br /> <br /> <input type="submit" name="submit" />
</form>
</div>
मैं पूर्णपृष्ठ प्लगइन को हटाने के द्वारा समस्या हल :) – Mehdi