Questions tagged [sceditor]

SCEditor is a lightweight WYSIWYG BBCode & HTML editor

26 questions
7
votes
1 answer

jQuery plugins: apply mCustomScrollbar to SCEditor

How can I apply mCustomScrollbar to SCEditor? This is what I've tried so far: HTML JS $("#editor").sceditor({ plugins: "xhtml", width: '100%', style:…
Matías Cánepa
  • 5,770
  • 4
  • 57
  • 97
2
votes
2 answers

How to move the cursor position within SCeditor?

I am inserting text into an instance of SCeditor and would like to move the cursor after the insert, to a specific position within the inserted text. Code of the SCeditor init: var textarea = $('textarea[name="'+fieldname+'"]')[0]; // shortcut to…
Avatar
  • 14,622
  • 9
  • 119
  • 198
2
votes
1 answer

Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead

I'm using SCEditor in my yii1 project & using v1.4.1, i can't use copy and past in chrome(Version 78.0.3904.108) , firefox (71.0 (64-bit)). How to enable clipboard past ? click to view image
Rayven
  • 21
  • 1
  • 4
2
votes
1 answer

sceditor: How do I save and load data to/from mysql

I recently came across this BBCode (Bulletin Board Code) editor named SCEditor. It's the first one that I found so I started using this one, but i am not really familiar with parsers and stuff. I need it for showing news on my website. So…
iLearner
  • 21
  • 2
2
votes
1 answer

Setting the cursor to the end of the text using SCEditor

I am attempting to insert a quote, then move the cursor to the end of the editor. Currently, I insert the quote, the cursor ends up inside the quote so if you were to start typing, the user would be adding to the quote which is not what I would like…
Ben
  • 5,627
  • 9
  • 35
  • 49
2
votes
3 answers

Get the value from SCEditor

I'm trying to get the value from my SCEditor textarea, using this code: var fbeschreibung = ''; $(function() { // Replace all textarea's // with SCEditor $("textarea").sceditor({ plugins: "bbcode", style:…
Juloius
  • 253
  • 1
  • 4
  • 11
2
votes
4 answers

get iframe content as string

I use a jquery plugin for generating rich text editor. That editor generates an structure like this:
...