سؤال

يا لدي صفحة SharePoint حيث سمحت للمستخدم باستخدام وضع التحرير لتحرير محتوى الصفحة.

هذا هو لوحة العرض الخاصة بي حيث يتم عرض المحتوى giveacodicetagpre.

هذا هو المكان الذي يتم فيه تحرير المحتوى. giveacodicetagpre.

المشكلة لدي هو أنه عندما أذهب إلى وضع التحرير داخل الصفحة، يمكنني تعديل المحتوى جيدا على ما يرام ولكن بعد حفظه، إذا قمت بتحول مرة أخرى إلى وضع العرض، فإنه يعرض فقط علامات HTML فقط.سيعرض العنوان علامة HTML قوية قبل العنوان، وأحصل على مصدر HTML وليس النتيجة.أي مساعدة؟

شكرا!

هل كانت مفيدة؟

المحلول

The Content type where the problem, where they were registered as Text and not HTML which is why they showed HTML tags, i simply went to the list of pages and delete my content type and its columns, when i redeployed it updated the content type to have the correct field type.

You can make sure you have the right field type by coding a small snippet that outputs all the fields from your content type, from web.ContentTypes[index]

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top