I am using the tinymce editor for one of my rails app.
I need to add HTML comments (<!-- -->), but it's not able to save the HTML tag as comment.
Please help!!
Thanks in advance.
You need to use the tinymce plugin named code (visible as 'html'-button in the tinymce UI) in order to insert comments. If you enter them as text inside the editor they will be treated as text.
Related
I have a froala editor integrated into one of my web applications which is based on net core 3.1.
I use the code view to write html pages in it and switch back to the html view before I save the page to the DB. Every time I insert a form tag on the page and switch back to the html view and then back to the code view I notice that Froala has removed the form tags entirely!
Can anyone please highlight the issue here?
Settings I have tried:
htmlUntouched: true,
htmlRemoveTags: [],
And as per the Froala doc:
The form tag is definitely allowed. So I fail to understand what is going wrong here.
Please let me know if you know the solution or any ideas would be greatly appreciated!
Thanks in Advance!
This appears to be a problem with browsers stripping out the <form> tag when the Froala editor is itself on the page inside a parent <form> tag. One suggestion in the github bug reports is to change the settings to iframe: true, although that may lead to other undesired consequences.
I integrated Tinymce in Rails 4 application. Now, i added content in Tinymce from admin and display it front side and works fine.
But as per requirements, I have to add <textarea> <input> tags into Tinymce editor and display it front side in HTML format.
I tried lots but not get any idea. Any one have trick or idea in it.
Thanks
I've create one blog using html5 and css3. I need to add new posts on that blog by clicking a button. If I'll click that button one text area has to be open and it'll have the options like adding image, video and text. For example the text area that will be used to create questions in stack overflow site. Please help me to make this one...
Regards,
Sandra
You need to use some sort of server side language. You can use PHP/ even add your theme in wordpress so that you can add required functionality
You have to use a rich text editor wrote in Javascript ( you can find some on Internet) and also, you have to write some PHP to send the the input from textarea( when click on submit or publish button) to a table in database.
Examples of rich text editors:
http://www.tinymce.com/ and
http://nicedit.com/
About the php part, you can find some examples on http://www.w3schools.com/php/.
Some pages on my Drupal site are showing the HTML tags on the live page.
I'm using CKEditor for this.
This is an example here
Check out the "Activities" section on this page.
Can anyone let me know what's the issue here and why are these tags appearing?
Thanks
If you include Html tags while not on View Source mode on CKEditor, it will escape those tags for you. Go into View Source mode and check if those the tags that are showing up are already escaped and then convert them back to Html.
I want arich text editor for embedding in webpage
but it should have tools and textbox seperable, i mean they should not be integrated
Try TinyMCE.
try
ckeditor
or
tinymce
both are good ... but I usually use tinymce because it does not require License :)