I would like to develop a html editor just like FCKeditor, but i dont know how they display the html code in text area like region, Will U pls help me with that? for having that textarea, which prase html codes and displays just like a web page?
Take a look at designMode and contentEditable elements.
Related
I want to create a some kind of a <textarea>/textbox on my page, that when you copy from a word document a paragraph with links, and when I submit a form (PHP) - it gets the text as an exactly how the doc looks like.
The only solution I have found for this is using something like TinyMCE
Is there a better PHPish solution for this? Or other HTML text-area tag I don't know of in HTML that does that?
yes,you can do it easily using TinyMCE
I just added WYSIWYG editor to my blog so I can easily post articles with text formatting. However, since I also got a box with recent posts, it automatically adds the text format (text bold, white lines etc) to those headlines. One headline contains the Title, abit of a content and the amount of reactions. Like:
BLOGTITLE
Abit of the article content
2 likes
Is there a way I could just show the content without the text formatting? I tried str_replace but that aint working for me. I also tried the striplashes. Doesnt work.
I dont think you need a piece of code since I'm simply echo'ing the message in the database.
It sounds like you need strip_tags
Is there any way to generate a pdf view from html , just like we use light box to see images?
In simple words, i have a WYSIWYG editor and a button, all i want is that, after clicking on a button there should be a function which should convert html from editor and provide pop up having view in pdf format.
I guess you can just send your html back to the server (maybe in ajax), and convert the html to pdf using something like TCPDF to convert html to pdf in php.
I am working on ckeditor in my php code. I would like to get some external html content displayed on ckeditor so that users can edit the content like they want. Please let me know how can I accomplish this.
The goal is to have a user paste a URL in textarea, and it outputs not a simple text or URL but displays that image from the URL?
http://www.thecampussocialite.com/wp-content/uploads/South-park-VS.-Family-Guy.jpg
Can this be done? Are there any examples?
The textarea is simply not capable of that.
You need to use a rich text editing control, instead of the basic HTML Text Area tag. Popular options are:
FCKEditor
TinyMCE