I want to use highlighted.js also I have grappelli and tinymce. I want to add highlighted.js but I have markdown editor.
How can I add highlighted.js while I am using markdown editor?
HTML is valid markdown, you should simply insert the link tag as you would with HTML.
Related
With SetFooterText you can provide a hyperlink using HTML syntax and it is displayed visually as a link. However, I find that only a website link works here. If I use a mailto link it won't work. Is there a workaround?
Also, if I try to use basic HTML, like wrapping a word with bold tags using SetContent it just shows as literal text.
What HTML syntax is supported by CTaskDialog? Can we easily override?
I want to use Quill Editor on a form input in Django.
From the examples in Quill playground I see that always the container is a div.
How can I make it work with a <textarea> instead of a div, and the text to remain in textarea, to work when I submit the form by Django;
I know there is a django-quill package, but lastest commit was done in 2015, and is reported not working with new Django versions, beside I want to do it more custom.
Quill is working inside a contenteditable div. If you want to make it "look like" a textarea this should be easy using css.
But if you're using Quill, this might be to use rich text, like bold, italic, bullets... And that rich content cannot live inside a textarea that just handles plain text (no text-formatting). That's why its has to stay inside a contenteditabe div.
Your form should, on submit, look for this div content and send it to your backend (either in pure js, or by copy-pasting the html content inside a hidden textarea this time) in html format.
I am building a rails blog and I needed to integrate a WYSIWYG editor so I tried with Summernote (v 0.8.1.1), everything is fine except when I create a new post , content is being saved into the database along with html tags instead of only the formatted text content. Latter I tried with Trix (v 0.10.1) and the same thing is happening.I followed everything correctly from the github docs but this only one issue persists. Thank you in advance.
This is the screen shot of the issue:screenshot
When you display data on page use raw like:
raw(#data)
which will convert yout html tags to proper html on page.
hey you should render output using raw function of ruby on rails
raw #post
or use <%=== %>
I am using django-markdown-deux and I would like to add ads by doing something like [ad_x] and then finding it via regexso I don't have to add a bunch of html to all my pages manually.
In markdown deux, they have a link_patterns setting which does the same thing, but it is pre-made to only turn the matched expression into a link and not whatever I want to put in it.
Is there an easy way to do this?
I am currently creating a mobile site using Sitecore, where I cannot use HTML as markup instead need to use BML as markup language for mobile. Please let me know the following in this regard:
We have a field called Description and its of type RICH TEXT. Here we cannot use the normal Rich Text Editor given by the Sitecore as it generates HTML. So can anyone tell me if I can create a customized RICH TEXT Editor with a button Say "Mobile Bold" and which should generate tags for mobile instead of normal HTML <b></b> tags .
As you all know we can change the RICH TEXT Editor from Default to FULL by setting the source attribute of the field to /sitecore/system/Settings/Html Editor Profiles/Rich Text Full. So in the similar way can I create one more item in the Core DB as /sitecore/system/Settings/Html Editor Profiles/MobileRichTextFull and include customized buttons to it so as to generate BML tags as described above. If this is possible let me know what are all the settings need to be done and steps to be followed for the same.
do you want the users to edit BML directly, or are you able to transform HTML to BML?
For the latter, you'd better solve this in the presentation layer/pipeline.
HTML Agility Pack will be your friend when going for this last solution.
Otherwise, look at Teleriks resources about the editor.