Force CK editor to save everything as it is - fckeditor

I am using CK editor on a text area. It is working fine but there is one problem and it is when I save content it removes some attributes and doesn't recognize all HTML tags. For example it is removing class attribute from ul li and also doesn't recognize many of HTML tags. Is there any way to modify CK editor so as to make to save everything. Removing it is not an option because CK editor is needed to make some customizations if a user is saving text. Thanks.

This should be the option you are searching for: http://docs.ckeditor.com/#%21/api/CKEDITOR.config-cfg-allowedContent

I couldn't get around this so I found another solution for this which I think might help others in similar situations. I now provide two options (using radio buttons) to users to save their data, through simple text box or through a fully CK editor loaded text box. If a user has already formatted text like containing lots of HTML tags, CSS classes, scripting etc they can simply select simple text box and it will save everything as it is without applying or removing anything. If they need to apply some formatting to simple text they can select loaded text box and format their text.

Related

Fold HTML tag attributes feature similar to Sublime Text

One feature I've found really useful in Sublime Text is the ability to fold HTML tag attributes. Is there a way to do this with VSCode that I'm missing?
I don't think there's a built-in way to do this. Also, it seems the extension API currently doesn't have a way of hiding characters, see this open feature request (except for a hack mentioned by the second comment).
Extensions also can't customize the built-in folding yet, see #3422.
To fold individual attributes just move your mouse pointer to the left of the editor, in the empty space on the right of the line numbers. Small - icons will appear. Click on the ones you want to fold items.
Keyboard shortcut is CTRL+SHIFT+].
You can get the full list of key bindings there: https://code.visualstudio.com/docs/getstarted/keybindings

Smart/Fillable PDF adding more attributes

I am creating a Smart/Fillable PDF using Acrobat Pro DC.
I created a word file with 250+ fields(in a tabular manner), exported to PDF and then in "Prepare form" options I added checkboxes, dropdowns and a couple of buttons and the form is ready. Now I want to add 50+ more fields into that PDF but if i follow the same procedure export to PDF and then "Prepare form" then i shall loose all the old validations and scripts I have written initially.
To overcome this scenario I tried a couple of things that didn't work for me:
Go to "Edit PDF" option and try editing PDF but that did not work as that option helps editing text and images but I have fields in a tabular format so in case if I want to add a table with N x N fields not possible
Tried to copy all elements including textbox,checkbox,dropdowns buttons etc but cannot copy all at once, tried then in a small group like 15-15 and that worked but still I had to reposition so not a feasible way
Tried to export the elements including textbox,checkbox,dropdowns buttons etc but Acrobat Pro DC doesn't help
Many other manipulative things but didn't help.
Please help me to overcome this problem.
Thanks in advance.
If you change the background of the form, you would first open the old version, and then replace the pages with the ones from the new version. This does not affect any form fields, so, only some repositioning may be necessary.
Then you go to the form edit mode (or use the Select Object Tool (single key accelerator R)) and you can select the fields you want to copy and either drag-copy if you are on the same page, copy/paste them, or duplicate them on other pages (via Context menu of the selected field in edit mode).
Another potentially important hint: deactivate Save as… optimizes for fast web view when working with forms.

SharePoint 2010 rich text field showing html tags in list views

I have a custom list made up of out of the box SharePoint field types (no custom field types used), but I am using custom new/edit/display form on the list which I have created using application pages.
We want the users of the forms to be able to put rich text formatting on these fields, so I am using the following tags for this....
<SharePoint:InputFormTextBox ID="rteChangeDesc" RichText="true" RichTextMode="FullHtml" runat="server" TextMode="MultiLine" Rows="10" Width="99%" Columns="500"></SharePoint:InputFormTextBox>
This works great on the forms but the list views all show the html tags. I've tried various ways of removing these, including setting the disable-output-escaping="yes" in SharePoint designer, and this hasn't worked.
Currently, I am saving the fields to the list in the code-behind using Server.HtmlEncode(), then using the HTMLDecode to display the contents correctly.
Is there a way of easily removing HTML tags in the view column, without loosing the rich text functionality and tool bar in the forms?
Or can I do something in the code-behind code before saving these to the list that would make them display in view columns but keep the formatting in the form?
Any help appreciated! Thanks!
Go to List Settings and modify the individual columns to show only rich text and not enhanced rich text. It worked for me. I can still include links and pictures and other HTML items but you do not see the code behind it.

Creating RTF text for clipboard and sharing DataPackage in WinRT

I'm sure this is just a google search away, but I can't find the right search terms to find what I'm looking for.
I've created a DataPackage that has both HTML annd plain text content. I've used this in my copy and my sharing code and it works fine. I now want to create RTF output as some apps don't seem to accept HTML clipboard content.
I'm looking for a good guide to making RTF text that can be added to the DataPackage. I just need simple formatting including changing the font family, font size, font weight and adding newlines. The data comes from a list of objects taht I want to serialise as RTF, not from a text control on the screen.
WordPad outputs fairly clean RTF and some other text editors do as well. If that's not enough, you can download the RTF Specification 1.9.1 although like any specification that's probably overkill for what you're doing.
You can also use the SaveToStream method on the Document property of a RichEditBox from a Metro style app to share out as well.

SharePoint2010 content editor?

I am building a website that will make heavy use of the content editor webparts to allow for content to be added. The drawback to this is that by default the content editor provides a "Rich Text Editor" which is good for adding data but bad because it has the potential to break styling. I have two solutions :
First is to do some coding to somehow have predefined css styles added to the styles menu of the Rich text editor.
Second which should be quicker is to simply disable the Rich text editor i.e disabling the fonts, styles, etc from the Rich Text editor so that users can only enter data and not mess around with the styling.
For soultion two, is this possble and what would be the quickest way to achieve this?
Any assistance is greatly appreciated!
Thanks in advance
The whole point of the rich text editor is to allow the user to enter styled content as they see fit. If you don't want any styling to be applied through the RTE either create style rules in your CSS to overrride anything the user enters or else use content fields based on multiple lines of text rather than rich text.
Core Technology Systems has recently released a how to video on content management on SharePoint 2010. I have included a link to the website which has the link to the video and their YouTube channel.
http://coregb.com/blog/archive/2011/12/01/content-organiser-in-sharepoint2010.aspx