Is there a way we can actually limit what you can type and insert (words, images, etc) into a ckeditor page equal to what we can fit into one MS word page?
It looks like the maxLength attribute should help answer your question. Just figure out how many characters a typical MS Word document can hold in a single page and add the maxLength attribute to your textarea for CKEditor. See this question on SO and see this page in the CKEditor documentation.
Related
Does anyone know of a ready-made plugin that allows adding input, textarea, select etc. on tinymce?
The tinymce.dom.Selection API (https://www.tiny.cloud/docs/api/tinymce.dom/tinymce.dom.selection/#select) allows you to select elements or set content in the TinyMCE editor. You can assign the API class to an action or an interaction element like a button or form, and any selected content will be replaced with the contents the API action passes in.
If that's not a good fit for what you need, is there an example of the type of adding input, a textarea, or a select you're looking for?
There are no official plugins that allow such interactive elements to be added. TinyMCE is a text editor that is built to create blog posts, articles, etc. By design, it is not a page builder. However, there may be some unofficial plugins on GitHub that may implement such features.
If you are going to insert forms and text areas that should not be edited or reconfigured afterward, you can use templates. They may come as any valid HTML. Thus, some fixed forms can be just saved as templates.
Another way is, of course, inserting HTML directly into the code.
is there a way to unlock the restrictions of number of characters in the summary field of the TinyMCE editor?
Found only solutions how to do the exact opposite.
Currently it is limited to 30 characters in the summary field.
Thank you for your help.
OK, turns out that it was not a TinyMCE problem, but a Java controller setting...
I'd like to minimize the number of times I have to type dates and version numbers across release notes pages and such on Confluence.
How can I reuse a text string within the same page as well as across pages on Confluence?
Right now, I have a bit of text (for example, a version number) which is typed out in multiple locations:
Page A
Top of page
Middle of page
End of page
Page B
I'd like to be able to type the value once and have it automatically appear in all places.
There are multiple bits of text I'd like to do this with on one page.
The closest I've found so far is the MultiExcerpt macro, but unfortunately it displays all content with newline wrapping instead of inline and that's a dealbreaker for me.
You may want to look into Comala Metadata, sounds like what you are looking for.
Disclaimer, I work in the company behind that app, in Comalatech.
Regards,
Gorka
Have you tried using Confluence own Include Macro or the Excerpt Macro. The include macro can be inline if you keep it on the same line in the editor.
There is an official extension called Multi Excerpt. It works like Excerpt, but you can use more then one for one page.
I have tinymce inserting posts into a database where they'll be subsequently pulled and put into a webpage. The problem is that some of the elements are interfering with page elements.
eg. Maybe the HTML that's being copy / pasted will have a table HTML tag with an id that conflicts with another id already on the page. Or maybe in the style attribute there'll be a z-index so the post cover up certain elements of the page.
I don't really want to blacklist attributes because (XSS considerations aside) I'm thinking all should be considered fair game (well maybe not event handlers) and if it interferes with the layout I can disable those specific tags / attributes on a case by case basis.
Any ideas?
There are several ways to filter your content:
use the tinymce paste_preprocess parameter to filter pasted content before insertion
you may use the valid_elements, valid_children and extended_valid_elements setting to allow which elements and attributes tinymce accepts as valid html tags (this is something you don't want?)
you can filter your code before writing it to your database
You could filter it when putting the content from database into another web page
Is it possible to get the page number and line number of particular text from doc/rtf/pdf in iPhone sdk?
Can QLPreviewController or UIDocumentInteractionController be of any help?
EDIT:
I am trying to create something like iAnnotate,Sente. Application where in user will be able to select some text and can add comments for selected text.
I have gone through the fastpdfkit api's which seems the only api which can be of some help.
Can you guys guide me in the right direction.
https://github.com/brow/leaves
Go with this link, it will help you for PDF reader and you can see there how I am doing total page and current page.
If you're looking at doing this with PDF, RTF and DOC it might be best to approach it in a different way as they are all very different formats.
Instead - if you consider attaching comments to an area of the page as opposed to a specific text selection then all you need to know about the document is which page you're looking at. A much easier task. Then you get the user to 'drag out' a comments box for an area of that page. Think of them more like sticky-notes.
This way you can add comments to images as well as text and it allows a much more flexible system for support of other file formats in the future.
I realise this isn't I direct answer to the question, but thought it relevant enough to post.