Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

First question-Inside what tag is written second question-the content of a web-p

ID: 3636884 • Letter: F

Question

First question-Inside what tag is written
second question-the content of a web-page?

Explanation / Answer

I have a question, what information should I provide so that somebody can help me with an answer? Remember: People in the forum spend their spare time to help you. So make helping you as pleasant and easy for them as possible or you might get no help at all. Tell them as many useful (= relevant) details (e.g. what browsers you use for testing,what TinyMCE version you are using and the scope of your application) as you can think of right in your first posting. Include possible error messages which your browser tells you (you might need to search for them depending on which browser you use). It is especially tiresome if you ask a question that has been asked already many times so make sure you use the forum's search functionality before you post your problem!! And if you ask, don't ask in multiple threads because this will only split the process which makes it hard to follow - for both you and the willing helpers. Later when someone looks for the solution to your problem they, too, will have a hard time finding what they need. For many questions (especially for beginners' questions) an answer can be found in the documentation on the configuration settings of TinyMCE. Often people just don't know (or simply don't realise) that the solution to their problems can be found there. They just need a hint on where to look for it. Therefore it is somehow mandatory that you provide the configuration code of your TinyMCE so that others can see how you have set up your editor and which changes can help solve your problem. Now where is this code to be found? Have a look into the HTML source code of your editor's page and look for something like this: // When you have found your configuration then post this JavaScript code together with your question. It makes it much easier for people to help you, and sometimes it enables people to do so in the first place! A link to a test page often is the most effective means to get help. Create a static page where users can test your TinyMCE implementation and might find errors or mistakes which so far have eluded you - and upload it to your server! Don't write any excuses for your English language skills! The fewest people in the forum are English native speakers so you are in good company. Bad language skills might be a good reason to work on them though, because some people can hardly describe their problem in an understandable way which makes helping them nearly impossible. Where can I find installation instructions ? Fully detailed For Dummies How can I upload image files from my local computer? Short answer: You can't! Long answer: TinyMCE is just an editor to output (X)HTML code. It is by no means comparable to web editing desktop software such as Adobe Dreamweaver, Go Live! or Microsoft Web Expressions and the like. It runs on a user's browser (client-side) and not on a server. If you want to upload pictures to a server then you need a server-side component to process your image files. TinyMCE can't do that on its own since it doesn't run on the server but on the user's browser. However there are two commercial plugins that enable you to upload files since they come with a server-side component. These are MCImageManager and MCFileManager. In addition, there are two Open Source plugins which accomplish this same purpose. These include IMCE and Ibrowser. Note that these are both released under the GPL, which may not be acceptable for many commercial applications. TinyMCE is a front-end for systems that need a client-side WYSIWYG editor (like many CMSes do). You can see it like an independent component that can be integrated into an existing system. TinyMCE is broken, what should I do? There are a few things you should check before posting questions about your problem at the forum or bugtracker. Check that you haven't missed removing the last , (comma) character in your initialization code and that all the other rows have a trailing , character. Does TinyMCE work on the TinyMCE website. Then you know that TinyMCE works with your browser. Try to disable any other JavaScripts on the page, some scripts interfere with internal functions that TinyMCE uses. Those scripts are probably poorly written. Verify that the path/URL to TinyMCE is correct, you can use the excellent tool Fiddler for this or Firebug. Do not cross domain load TinyMCE or any other script unless you really really must, since this will invoke various browser security features. In other words, try placing everything on the same server. Don't place textareas within paragraph elements since this is not valid HTML and it will break MSIE and TinyMCE. I need to limit the number of characters a user can input Answer yourself these two simple questions to understand that WYSIWYG and character count are in fact a contradiction. Why would you need to limit the number of characters a user can input into the editor? What do you need WYSIWYG for? The interesting aspect about WYSIWYG and character count is how you "count out" the HTML code-related characters from the actual "text". And how do you intend to explain to your user why the character count has increased by 17 characters just because the user has turned something into bold print? Read what main developer spocke has to say about character limit in TinyMCE. If this doesn't satisfy you then read on some posts later. I need a language pack and have downloaded the XML file but it's not working! You don't want the XML file! You want to check the checkboxes on the language pack service page in order to select the desired language packs and then you click the "download" button. This way you get a ZIP file which contains JavaScript files. It is those files you are after! The XML file is for those who wish to complete or update/improve the already existing language files. These people can then work on the respective XML file and upload it back to the server so others can then re-download an updated language pack. Paths/URLs are incorrect, I want absolute/relative URLs? These are the different configuration scenarios for URLs within TinyMCE. There is also an example page illustrating these different options: Relative URLs This will convert all URLs within the same domain to relative URLs. The URLs will be relative from the document_base_url. relative_urls : true, document_base_url : "http://www.site.com/path1/" Example: http://www.site.com/path1/path2/file.htm >> path2/file.htm Absolute URLs This will convert all relative URLs to absolute URLs. The URLs will be absolute based on the document_base_url. relative_urls : false, remove_script_host : true, document_base_url : "http://www.site.com/path1/" Example: path2/file.htm >> /path1/path2/file.htm Domain Absolute URLs This will convert all relative URLs to absolute URLs. The URLs will be absolute based on the document_base_url with domain. relative_urls : false, remove_script_host : false, document_base_url : "http://www.site.com/path1/" Example: path2/file.htm >> http://www.site.com/path1/path2/file.htm No URL Conversion This option will preserve the URLs as they are in a separate attribute while editing, since browsers tend to auto convert URLs. convert_urls : false Example: path2/file.htm or http://www.site.com/path1/path2/file.htm will not be converted at all. Note: Some versions of Internet Explorer may continue to convert URLs even with convert_urls set to false. Consider using the valid_elements initialization option and excluding the a (anchor) tag. See http://stackoverflow.com/questions/687552/prevent-tinymce-internet-explorer-from-converting-urls-to-links for more on this issue. TinyMCE strip away attributes or tags from my source? You need to check out the valid_elements and extended_valid_elements option in the configuration. By default, TinyMCE only allows certain tags and attributes. TinyMCE also tries to follow the XHTML specification as much as possible, this can cause some unexpected source changes, there are however configuration options to battle this issue, study the configuration options in details. TinyMCE strips away or alters my server-side code So you mix HTML markup with server-side logic? Moxiecode developer spocke explains in the forum why this is a problem and cannot be overcome with TinyMCE in a sensible way. Remember: TinyMCE is an editor control which is made so _end users_ could edit content in a rich text environment. It is by no means meant to be an IDE! However there are third-party plugins which try to do exactly that... How do I change the default font size/face color of the editor? We recommend that you have a look at the content_css option, this enables you to switch the CSS file TinyMCE uses for its editing area with a file with your CSS rules for font size and so forth. How do I remove/add buttons/controls to TinyMCE? There are quite a few options for this but a reference of all available buttons/control names can be found in the button/control reference. TinyMCE adds BR elements to my content No it should not, if you are using PHP, check so that you are not using nl2br() function in PHP on the posted contents. TinyMCE produce P elements on enter/return instead of BR elements? Here are a few reasons why BR elements and the force_br_newlines aren't enabled by default and why forced_root_block is. Paragraphs were invented for a reason. Try modifying paragraph margins using CSS without using paragraph tags and you see what we mean. The IE WYSIWYG environment is built on handling paragraphs when it comes to alignment/list management and much more. TinyMCE and other editors will start producing lots of strange results if you enable force_br_newlines. The space between the paragraphs can be removed using a simple CSS trick like this. p {margin:0; padding: 0;}. This is not possible with BR elements, since the whole line is not wrapped in a container. So P elements gives you the flexibility to choose. If you really must have BR instead of paragraph elements for some reason – for example to interface with Flash or send e-mail messages –, then simply post process them away by replacing