senters Posted December 15, 2011 Report Share Posted December 15, 2011 (edited) Plugins - https://github.com/akzhan/jwysiwyg Nekādi neizdodas nokonfigurēt, lai iepeistojot tekstu textareā, tam nerādītos nokopētais formāts. Pašreizējais konfigs: $(function() { //$('#wysiwyg').wysiwyg.rmFormat.enabled = true; $('#wysiwyg').wysiwyg({ css : { fontFamily: 'Arial, Helvetica ,clean,sans-serif', fontSize : '12px'}, rmUnusedControls: true, controls: { bold: { visible: true }, underline: { visible: true }, removeFormat: { visible: true }, justifyLeft: { visible: true }, justifyCenter: { visible: true }, justifyRight: { visible: true }, justifyFull: { visible: true }, insertOrderedList: { visible: true }, insertUnorderedList: { visible: true } //subscript: { visible: false }, //superscript: { visible: false }, //italic: { visible: false }, //strikeThrough: { visible: false }, //undo: { visible: false }, //redo: { visible: false }, //indent: { visible: false }, //outdent: { visible: false }, //h1: { visible: false }, //h2: { visible: false }, //h3: { visible: false }, //insertTable: { visible: false }, //insertImage: { visible: false }, //createLink: { visible: false }, //html: { visible: false }, //insertHorizontalRule: { visible: false }, //removeFormat: { visible: false } }, initialContent: '' }); }); Te piemērs -> http://screencast.com/t/llXu8Bim Šeit puikas raksta par šo fīču - https://github.com/a...iwyg/issues/222 Vispār baigais sviests, neko google nepiedāvā jēdzīgu par šo "automatically paste plain text jWYSIWYG" > Šeit izmantošu CKEditor (http://docs.cksource.com/CKEditor_3.x/Developers_Guide/jQuery_Adapter) Edited December 16, 2011 by senters Link to comment Share on other sites More sharing options...
0 senters Posted December 16, 2011 Author Report Share Posted December 16, 2011 Risinājums, uzliku CKEditor, kura konfigā (config.js) norāda -> "CKEDITOR.config.forcePasteAsPlainText = true;" un viss strādā. Link to comment Share on other sites More sharing options...
Question
senters
Plugins - https://github.com/akzhan/jwysiwyg
Nekādi neizdodas nokonfigurēt, lai iepeistojot tekstu textareā, tam nerādītos nokopētais formāts.
Pašreizējais konfigs:
Te piemērs -> http://screencast.com/t/llXu8Bim
Šeit puikas raksta par šo fīču - https://github.com/a...iwyg/issues/222
Vispār baigais sviests, neko google nepiedāvā jēdzīgu par šo "automatically paste plain text jWYSIWYG"
> Šeit izmantošu CKEditor (http://docs.cksource.com/CKEditor_3.x/Developers_Guide/jQuery_Adapter)
Edited by sentersLink to comment
Share on other sites
1 answer to this question
Recommended Posts