Can i add <textarea> inside Tinymce editor? - html

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

Related

Angular remove content of style tag in head

I use Angular 13. Angular does not display the content of the style tag in head, although it is present in the code. The content of the tag is not important, neither is the total number of tags. The middle tag always shows no content.
Maybe someone encountered such a bug and knows the reason?
Angular strips out style and script tags from the component templates for security purposes. If you need to load styles from an external source, the default security can be bypassed.
Here's an article that should point you in the right direction: https://netbasal.com/angular-2-security-the-domsanitizer-service-2202c83bd90

Display raw html in tinymce that is wrapped in code/pre, not rendered

I am using tinymce as my wysiwyg editor in laravel app.
Everytime i create an article that contains code such as html meta tag or title etc wrapped in code/pre. Once i reload the page to edit, it disappears. If i set the encode raw then it does not disappear in backend but displays all raw html in front end. I want to display only raw html in frontend that is wrapped in code/pre. I dont know how many days i need more to solve it? All i want is to display html code in my blog, raw html code that is wrapped in code/pre, not rendered! This is my thread in stackoverflow. Please help.
code snippet disappears only plain text remains in tinymce
I will delete the previous thread once i solve it, sorry to post similar question.

Display custom tags on the display view of CKEditor 4

I'm trying to store a string of text in a database that includes custom html tags like:
<inline type="example" />
When it goes into the database it stores just fine but when I try to bring it out of the database into CKEditor to edit/modify it's not visible on the display side. Since it's a custom tag, I just want the person modifying to be able to see it and not CKEditor to try to render the html of it. I've looked some at Advanced Content Filtering but haven't been able to quite figure it out yet.
Any ideas?

Can I stop Sharepoint's RichHtmlField stripping data-* attributes?

I've got a page layout with a PublishingWebControls:RichHtmlField inside. In use, if I add some HTML with data-* attributes, e.g. a Twitter share button:
Tweet
Then save the changes, the data-en attribute goes missing.
Is there a way I can stop them being stripped?
Does the answer in the following post help you? It suggests using SharePoint Designer to edit the HTML.
SharePoint 2010 stripping shape and coords from <area> tags

codemirror fails when adding </textarea> tag inside it

I'm using codemirror http://marijn.haverbeke.nl/codemirror/ to let users create their own web templates inside a web application.
Codemirror works great, except for the time that users have put a tag inside their source code. When I load that up inside code mirror, it breaks everything in the source code that follows after because it thinks my codemirror text area is closed.
I'm using the following way to launch codemirror:
CodeMirror.fromTextArea('code')
It works great on my existing textarea "code" except when users add inside their templates (in the codemirror textarea).
solved by wrapping htmlspecialchars() around the code, before putting it in code mirror!